Countdown is stuck to 1 second for the whole duration of the loop

So i’m making a nuke event for my friend’s game but the GUI countdown have a little problem…


it’s always stuck at “1 s left”
I think i should have send a video but i took like so long to take this screenshot and i am lazy to open OBS :skull: so… if you wanna get a video just ask me lol
here’s the countdown code btw (it’s serversided):

local p = game.Players:GetChildren()
for i = 75, 1, -1 do
	for i = 1, #p do
		p[i].PlayerGui.NukeExplosionCountdown.Count.Text = i .. " s left"
	end
	wait(1)
end
1 Like

the game is probably confused as to which ‘i’ you are using. try this:

local p = game.Players:GetChildren()
for i = 75, 1, -1 do
	for a = 1, #p do
		p[a].PlayerGui.NukeExplosionCountdown.Count.Text = i .. " s left"
	end
	wait(1)
end```
1 Like

oh well i guess it works this time
yeah the game got confused of the double “i”
well thanks

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.