I have made a timer admin command, it is suppose to copy the timer gui to the playergui (for all players) then countdown the timer that was giving to it through the chat. The gui part works fine however the countdown does not work and it starts at 0 instead of the timer value.
commands.timer = function(sender, arguments)
local Timer = arguments[1]
print(Timer)
if Timer then
for p, v in pairs(game.Players:GetChildren()) do
local timerc = RS.Timer:Clone()
timerc.Parent = v.PlayerGui
for i = Timer, 0, -1 do
timerc.Outer.Inner.TextLabel.Text = i
end
end
end
end

4 comments
Now the textlabel doesn't display any number just the default text I set it.
Hmm. Let me check my code and see whats going on.
Ok this isn't exactly what you did but it was the best I could do: function Timer(sender, args) local TimeSent = args[1] print(TimeSent) if (TimeSent) then for i = TimeSent, 1, -1 do print(i) end end end Timer("Someone", {[1] = 60})
you can change it however you tried doing it but it should just do your job with printing instead, so it should be an easy fix to make it a GUI