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 8 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?

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
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 — 8y

Answer this question