I'm made a script to find all players, check if they are on either the green, blue, or red teams (players who are eliminated are on none), and then add a 15 second count timer to their Gui. For some reason, the Gui doesn't work. I have the Gui all set in the PlayerGui and all, and the thing says "0:15", because that is the default, but the script does not run the countdown and I don't know why.
for i,players in pairs(game.Players:GetChildren()) do--IntervalTime Gui change
if players.PlayerGui:FindFirstChild("Inno") then
for t=intervaltime,15 do
players.PlayerGui.Inno.TextLabel.Text = "0:"..t - 1
t = t - 1
wait(1)
end
elseif players.PlayerGui:FindFirstChild("Traitor") then
for t=intervaltime,1,-1 do
players.PlayerGui.Traitor.TextLabel.Text = "0:"..t - 1
t = t - 1
wait(1)
end
elseif players.PlayerGui:FindFirstChild("Detective") then
for t=intervaltime,1,-1 do
players.PlayerGui.Detective.TextLabel.Text = "0:"..t - 1
t = t - 1
wait(1)
end
end
end

2 comments
Any way you could piece this into an edited code block for me? It's hard for me to put together everything you've said. Sorry!
I will, but it will have to come tomorrow, I have very limited time today. Sorry to make you wait