How to make changing a textlabel repeat?

I was wondering how to repeat making a textlabel change.

This is my current script:
local a = 1
local c = 30

while a == 1 do
wait()
game.StarterGui.Intermission.TextLabel.Text = "Intermission "…c
wait(1)
c = c - 1
print(c )
end

The text changes to “Intermission 30” but the 30 never goes down while the value of c does.

local c = 30

while c >= 0 do wait(1)
    game.StarterGui.Intermission.TextLabel.Text = "Intermission "..c
    c -= 1
    print(c)
end

it should go from Intermission 30 all the way to Intermission 0

Your script gives me the same issue.

You’re changing from StarterGui instead of the player’s playerGui, Judging by the way this is made, it’s a regular script.

Have it so the changing is done from the client via making the countdown an intvalue and have the client listen for when the value changes via the IntValue’s Changed event

Just use a standard for loop. Also reference the UI through the player as @EmbatTheHybrid said.

for i = 30,1,-1 do
    game:GetService('Players').LocalPlayer.PlayerGui.Intermission.TextLabel.Text = 'Intermission '..i
end