Need Help with Timer Gui

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

Show your code so we can see if there any issues

edit: i figured it out, i had to put the gui in player gui