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

Why does my Timer not work in a game?

Asked by 9 years ago

gui = game.StarterGui.raidgui.raidtimer.raidtime timevalue = script.Parent.TimeValue maxtime = script.Parent.TimeValue.Value for i = 1, timevalue.Value do wait(1) gui.Text = tostring(maxtime-timevalue.Value) timevalue.Value = timevalue.Value - 1 end`

I used this script to make a timer and when I press run in studio, the gui has a working timer but when I enter the game it seems like when the server started the timer started counting but as soon as I, the player, entered it would stop. Im using StarterGui-ScreenGui-Frame if hat helps with the TimeValue in Workspace. Can someone help me make the timer work in a game?`

0
Put into code using the blue lua bubble wjs3456 90 — 9y

1 answer

Log in to vote
0
Answered by 9 years ago

I created it, and its not suppose to be a script by itself. I thought you said you said you were going to make commands to run it

Ad

Answer this question