Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

What is wrong with this interval Gui script?

So, obviously, this would be quite easy in a LocalScript, but it's not a LocalScript.

It simply doesn't work. It's supposed to count down from 15, but it doesn't work.

local intervaltime = 15
			
				for i,players in pairs(game.Players:GetChildren()) do --IntervalTime Gui change
					if players[i].PlayerGui:FindFirstChild("Inno") then
						repeat
						players[i].PlayerGui.Inno.TextLabel.Text = "0:"..intervaltime
						intervaltime = intervaltime - 1
						wait(1)
						until
						intervaltime == 0

Thanks!

1 answer

local Time=15

for i,Player in pairs(game.Players:GetChildren()) do
	if Player.PlayerGui:FindFirstChild("Inno") then
		for t=Time,1,-1 do
			Player.PlayerGui.Inno.TextLabel.Text="0:"..t
			wait(1)
		end
	end
end

1 comment

0

Didn't work.

This discussion is preserved as it was. New answers, comments, and votes are closed.