I have created a while loop timer and I would like to extend the timer by 60 seconds when someone clicks a button.
The timer gets extended but it adds a ridiculous amount of time when doing so. Each time someone votes it seems to be multiplying it a lot
Here’s the code I used:
function timerLoop()
local i = 30
while i >= 0 do
if i ~= 0 then
values.timeLeft.Value = i
task.wait(1)
i = i - 1
events.updateTimer.Event:Connect(function()
i = i + 60
end)
end
end
end
Here’s an example of what’s happening:
Any help would be appreciated, thanks!