Here is the finished code:
–ServerScriptService Script
wait(.1)
while true do
local RS = game:GetService(“ReplicatedStorage”)
local event = RS:WaitForChild(“FirstEvent”)
local eventTwo = RS:WaitForChild(“SecondEvent”)
local eventThree = RS:WaitForChild(“ThirdEvent”)
local count = 30
while count > 0 do
count -= 1
event:FireAllClients(count)
task.wait(1)
end
count = 11
while count > 0 do
count -= 1
eventTwo:FireAllClients(count)
task.wait(1)
end
eventThree:FireAllClients()
wait(37.8) --This number is so specific because it’s how long until the lava in my game disappears
end
–LocalSciprt in StarterPlayerScripts
local RS = game:GetService(“ReplicatedStorage”)
local event = RS:WaitForChild(“FirstEvent”)
local eventTwo = RS:WaitForChild(“SecondEvent”)
local eventThree = RS:WaitForChild(“ThirdEvent”)
local PLYRS = game:GetService(“Players”)
local plyr = PLYRS.LocalPlayer
local function Intermission(count)
plyr.PlayerGui.ScreenGui.TextBox.Text = "Intermission: "…tostring(count)
end
local function RisingCountDown(count)
plyr.PlayerGui.ScreenGui.TextBox.Text = "Lava Is Rising In "…tostring(count)
end
local function Warning()
plyr.PlayerGui.ScreenGui.TextBox.Text = “The Lava is Rising! Seek High Ground!”
end
event.OnClientEvent:Connect(Intermission)
eventTwo.OnClientEvent:Connect(RisingCountDown)
eventThree.OnClientEvent:Connect(Warning)