I made a method that triggers if there isn't enough players on the game called AnnounceMsg()
. It takes in a string that announces a message. Here is the function:
function AnnounceMsg(message)
for _, player in pairs (game.Players:GetChildren()) do
player:WaitForChild("PlayerGui").Announcements.Backing.Announcements.Text = message
end
end
I am getting the error:
Announcements is not a valid member of PlayerGui
BUT! The problem is it is a member of PlayerGui. Any help?

2 comments
Is your game Filtering Enabled?
Yes