Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why doesn't my TextChanger change the text?

Asked by 9 years ago

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?

01function playerNotification(changeText)
02    for _,v in pairs (game.Players:GetChildren()) do
03        local ScreenGUI = v.PlayerGui:FindFirstChild("ScreenGui")
04        if ScreenGUI then
05            ScreenGUI.Frame.TextLabel.Text = changeText
06        end
07    end
08end
09 
10function intermissionTimer()
11    if game.Players.NumPlayers >= 2 then
12        for countDown = 10, 0, -1 do
13            playerNotification("Intermission: " ..countDown)
14            wait(0)
15        end
16    end
17end
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. ProtectedMethod 105 — 9y

Answer this question