Hi there! I know this is my second scripting support topic today, but this is the final thing before release, I promise. I have a simple timer/round system in a GUI, but the reset event isn’t firing. Can anyone help? This is my code:
--Server script in GUI
wait(20)
while true do
script.Parent.Timer:FireAllClients()
wait(60.5)
script.Parent.Reset:FireAllClients()
wait(5)
end
--Local script in GUI
script.Parent.Reset.OnClientEvent:Connect(function()
script.Parent.Value.Value = 0
local player = game:GetService("Players").LocalPlayer
if script.Parent.Value2.Value == 1 then
script.Parent.Text = "You," ..player.Name "Won!"
wait(4)
script.Parent.Text = "JK. Ceasar just came to power. You are now dead."
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:FindFirstChild("Humanoid")
humanoid.Health = 0
script.Parent.Value2.Value = script.Parent.Value2.Value + 1
end
if script.Parent.Value2.Value == 2 then
local player = game:GetService("Players").LocalPlayer
script.Parent.Text = "Guess what?!" ..player.Name "Won!"
wait(4)
script.Parent.Text = "JK Ceasar was just killed and the mob got you, too."
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:FindFirstChild("Humanoid")
humanoid.Health = 0
script.Parent.Value2.Value = script.Parent.Value2.Value + 1
end
if script.Parent.Value2.Value == 3 then
local player = game.Players.LocalPlayer
script.Parent.Text = "WHAT!?" ..player.Name "won! Who would've guessed?!"
wait(4)
script.Parent.Text = "Never mind. Agustus just took over and acused you of treason."
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:FindFirstChild("Humanoid")
humanoid.Health = 0
script.Parent.Value2.Value = script.Parent.Value2.Value + 1
end
if script.Parent.Value2.Value == 4 then
local player = game.Players.LocalPlayer
script.Parent.Text = "Hold up." ..player.Name "is the winner?! WHAAAAA?!"
wait(4)
script.Parent.Text = "Nope. Ceasar's ghost is here and want's to take us back a few hundred years."
script.Parent.Value2.Value = 1
end
end)
script.Parent.Timer.OnClientEvent:Connect(function()
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
script.Parent.Value.Value = script.Parent.Value.Value + 1
script.Parent.Text = script.Parent.Value.Value
wait(1)
end)
I know this isn’t the most efficient timer, but it was just a simple quick thing I needed. Anyways, here’s the explorer

Can anyone tell me why this isn’t working? It is counting up, then waiting for a little, then restarting the countdown. There are no errors in the output. If you are confused about the text, this is just a fun thing for a Latin game. Any help is appreciated!