Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

What is wrong with this interval Gui script?

Asked by 10 years ago

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

Log in to vote
1
Answered by
Muoshuu 580 Moderation Voter
10 years ago
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
0
Didn't work. SlickPwner 534 — 10y
Ad

Answer this question