local gui = game.StarterGui.ScreenGui.Frame.TextLabel
local timevalue = Instance.new("NumberValue")
timevalue.Parent = game.ReplicatedStorage
timevalue.Name = ("timevalue")
timevalue.Value = 11
gamer = true
local serverplayer = game.Players.PlayerAdded:Connect(function(player)
end)
local function starttimer() gamer = true
timevalue.Value = 10
for i = 1, 10, 1 do
task.wait(0.01)
timevalue.Value -= 1
print(gamer)
remote:FireAllClients() if timevalue.Value == 0 then gamer = true end end end
local function gametimer() gamer = false
timevalue.Value = 100
for i = 1, 100, 1 do
task.wait(0.01
)
timevalue.Value -= 1
print(gamer)
remote:FireAllClients() if timevalue.Value == 0 then starttimer()
gamer = true
end
end
end
starttimer()
if gamer == true and timevalue.Value == 0 then
gametimer()
end```
#my timer isnt looping
1 messages · Page 1 of 1 (latest)
Use a while loop instead of a for loop
** You are now Level 4! **