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

What can I do to make a Gui Timer?

Asked by 9 years ago

I am trying to make a timer using a Gui, however it seems like I cannot use numbers as a value for the text of the gui. Can you give me a solution to this or another way to make a Gui timer? i do not want to use a free model.

0
If possible I want to make it so that from certain people using a certain command, the timer can turn on, off, and restart. Venerex 5 — 9y

1 answer

Log in to vote
2
Answered by 9 years ago

easy,

gui = gui
timevalue = script.Parent.TimeValue
max =  script.Parent.TimeValue.Value
for i = 1, timevalue.Value do
wait(1)
gui.Text = tostring(max-timevalue.Value)
timevalue.Value = timevalue.Value - 1
end

And for the certain command, look into .Chatted functions. and study string maniuplations such as string:sub() and string:lower() which would be helpfull in your situation.

0
Thanks ill try it. Venerex 5 — 9y
Ad

Answer this question