My script is not working

Hi i am a beginner to scripting so please note that

The script does not work when i play it, but it works when I run.

The script is below…

local time1 = game.StarterGui.Timer.TextLabel
local endtime = 4
wait(1)
print(“Done”)
for count = 1 ,endtime do
time1.Text = count
time1.TextScaled = true
wait(1)
end
print(“i made it here”)

Is this a local or regular script? That may be the problem. Make sure it’s a local script because regular scripts wont run for players. Regular scripts are meant for the server, not the player.

2 Likes

I’m gonna say use a localscript as @KingOfHungry said earlier.

local time1 = script.Parent
local endtime = 4

wait(1)

print("Done")

for count = 1 ,endtime do
time1.Text = count
time1.TextScaled = true	
wait(1)
end

print("I made it here")
1 Like