Here’s a clean, “tech-sim” style Start GUI for your Disaster Simulator. It lives in a LocalScript under StarterGui. When the player clicks one of the four element buttons (Water, Fire, Earth, Air), it:
• Stores the choice (you can fire to the server via RemoteEvent)
• Fades out & destroys the GUI
• Removes the blur
Feel free to tweak colors, fonts, icons, sizing or hook up your own RemoteEvent to actually inform the server which element was picked.
-- LocalScript under StarterGui
--// SERVICES
local Players = game:GetService("Players")
local Lighting = game:GetService("Lighting")
local TweenService = game:GetService("TweenService")
--// PLAYER SETUP
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
--// UTILS
local function createBlur(amount)
local blur = Instance.new("BlurEffect")
blur.Name = "StartBlur"
blur.Size = 0
blur.Parent = Lighting
-- Tween in
TweenService:Create(blur, TweenInfo.new(1, Enum.EasingStyle.Quad), { Size = amount })
:Play()
return blur
end
local function removeBlur(blur)
if not blur then return end
TweenService:Create(blur, TweenInfo.new(0.7, Enum.EasingStyle.Quad), { Size = 0 })
:Play()
-- auto‐destroy after tween
delay(0.7, function() if blur then blur:Destroy() end end)
end
--// BUILD GUI
local blurEffect = createBlur(24)
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "ElementSelectGui"
screenGui.ResetOnSpawn = false
screenGui.Parent = playerGui
-- Main background (semi‐transparent blue)
local mainFrame = Instance.new("Frame")
mainFrame.Name = "MainFrame"
mainFrame.AnchorPoint= Vector2.new(0.5,0.5)
mainFrame.Position = UDim2.new(0.5,0,0.5,0)
mainFrame.Size = UDim2.new(0, 400, 0, 300)
mainFrame.BackgroundColor3 = Color3.fromRGB(20, 40, 80)
mainFrame.BackgroundTransparency = 0.1
mainFrame.BorderSizePixel = 0
mainFrame.Parent = screenGui
-- Title
local title = Instance.new("TextLabel")
title.Name = "Title"
title.Size = UDim2.new(1,0,0,50)
title.Position = UDim2.new(0,0,0,0)
title.BackgroundTransparency = 1
title.Text = "Select Your Element"
title.Font = Enum.Font.GothamBold
title.TextSize = 30
title.TextColor3 = Color3.new(1,1,1)
title.Parent = mainFrame
-- Container for buttons
local btnContainer = Instance.new("Frame")
btnContainer.Name = "ButtonContainer"
btnContainer.Size = UDim2.new(1,-40,1,-80)
btnContainer.Position = UDim2.new(0,20,0,60)
btnContainer.BackgroundTransparency = 1
btnContainer.Parent = mainFrame
local uiList = Instance.new("UIListLayout")
uiList.Parent = btnContainer
uiList.FillDirection = Enum.FillDirection.Vertical
uiList.HorizontalAlignment = Enum.HorizontalAlignment.Center
uiList.VerticalAlignment = Enum.VerticalAlignment.Top
uiList.SortOrder = Enum.SortOrder.LayoutOrder
uiList.Padding = UDim.new(0, 12)
-- Helper to make buttons
local function makeButton(name, color)
local btn = Instance.new("TextButton")
btn.Name = name .. "Btn"
btn.Size = UDim2.new(1, 0, 0, 50)
btn.BackgroundColor3 = color
btn.BorderSizePixel = 0
btn.Font = Enum.Font.GothamSemibold
btn.TextSize = 24
btn.TextColor3 = Color3.new(1,1,1)
btn.Text = name
btn.Parent = btnContainer
return btn
end
-- Create the four element buttons
local waterBtn = makeButton("Water", Color3.fromRGB(0, 140, 230))
local fireBtn = makeButton("Fire", Color3.fromRGB(220, 60, 40))
local earthBtn = makeButton("Earth", Color3.fromRGB(100, 70, 20))
local airBtn = makeButton("Air", Color3.fromRGB(180, 200, 250))
--// SELECTION HANDLING
local function onSelect(elementName)
-- 1) Send to server (example: RemoteEvent)
-- game.ReplicatedStorage.ChooseElement:FireServer(elementName)
-- 2) Play a little fade out
TweenService:Create(mainFrame, TweenInfo.new(0.5), { BackgroundTransparency = 1 })
:Play()
TweenService:Create(title, TweenInfo.new(0.5), { TextTransparency = 1 })
:Play()
for _, btn in ipairs(btnContainer:GetChildren()) do
if btn:IsA("TextButton") then
TweenService:Create(btn, TweenInfo.new(0.5), { TextTransparency = 1, BackgroundTransparency = 1 })
:Play()
end
end
-- 3) Clean up after fade
delay(0.6, function()
screenGui:Destroy()
removeBlur(blurEffect)
print("Player chose:", elementName)
-- you can now launch Part 2 (Upgrade GUI) etc.
end)
end
-- Hook up buttons
waterBtn.MouseButton1Click:Connect(function() onSelect("Water") end)
fireBtn. MouseButton1Click:Connect(function() onSelect("Fire") end)
earthBtn.MouseButton1Click:Connect(function() onSelect("Earth") end)
airBtn. MouseButton1Click:Connect(function() onSelect("Air") end)