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

Text changing help?

Asked by 9 years ago

I made a previous post about my round system, and someone helped me with it and they changed something about my Text Changer. The problem is whenever I try to start up a server in studio the text says "Label" and it never changes. Could anyone resolve this problem, thanks!

Also, if you see any bugs or errors in my round system, please feel free to point it out with how to change it, thanks!

Text Changer:

1function playerNotification(changeText)
2    for _,v in pairs (game.Players:GetChildren()) do
3        local ScreenGUI = v.PlayerGui:FindFirstChild("ScreenGui")
4        if ScreenGUI then
5            ScreenGUI.Frame.TextLabel.Text = changeText
6        end
7    end
8end

Rest of the Round System:

001function playerNotification(changeText)
002    for _,v in pairs (game.Players:GetChildren()) do
003        local ScreenGUI = v.PlayerGui:FindFirstChild("ScreenGui")
004        if ScreenGUI then
005            ScreenGUI.Frame.TextLabel.Text = changeText
006        end
007    end
008end
009 
010function waitForPlayers()
011    while game.Players.NumPlayers < 2 do
012        playerNotification("You need 1 more player to start the round!")
013        wait(0)
014    end
015end
View all 117 lines...
0
If filtering is enabled, the server can't access elements of Player.PlayerGui. 1waffle1 2908 — 9y
0
Is there a way for me to re-script it to make it work with FilteringEnabled? Vestralix 15 — 9y

Answer this question