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

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

Asked by
JollyDumb -21
7 years ago

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

Log in to vote
0
Answered by
JollyDumb -21
7 years ago

NVM I FIXXED IT.

Ad

Answer this question