so im currently testing out a timer gui that ive made and i came across a problem, the timer gui works but it only works when i run the game but not when i press “play here” or “play” any suggestions on how to fix this.
min = “2:”
sec = “15”
textlabel = game.StarterGui.ScreenGui.TextLabel
while wait(1) do
textlabel.Text = tostring(min)…tostring(sec)
sec = sec -1
if sec == 9 then
while wait(1) do
textlabel.Text = tostring(min)…tostring(“0”)…tostring(sec)
sec = sec -1
if sec == -1 then return
end
end
end
end