Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why does my Timer not work in a game?

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?`

1 comment

0

Put into code using the blue lua bubble

1 answer

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

This discussion is preserved as it was. New answers, comments, and votes are closed.