Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

i got an error main is not a valid member of playergui?

this is the script function ChangeText(Text) local Players = game.Players:GetPlayers() for i = 1, #Players do Players[i].PlayerGui.Main.Time.Text = Text end end

further in the script i am using lines like ChangeText("peanutbutterjelly")

i'm making a minigame so i have a text label called time that changes when the function ChangeText is called but im getting that error that messes my script up.

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.