I got help from someone and he made code that's supposed to change the text of a TextLabel, but it's not change. Could anyone help?

function playerNotification(changeText)
	for _,v in pairs (game.Players:GetChildren()) do
		local ScreenGUI = v.PlayerGui:FindFirstChild("ScreenGui")
		if ScreenGUI then
			ScreenGUI.Frame.TextLabel.Text = changeText
		end
	end
end

function intermissionTimer()
	if game.Players.NumPlayers >= 2 then
		for countDown = 10, 0, -1 do
			playerNotification("Intermission: " ..countDown)
			wait(0)
		end
	end
end

1 comment

0

Is that the full script? I never see intermissionTimer() being called. Also, wait(0) is going to wait a very short amount of time, so you might not even notice the countdown. It will likely just appear to skip to the end.