i made a lobby with game rounds that works perfectly in studio but when i join it doesnt work.I opend server log and it said "Main is not a valid member of PlayerGui". Can someone help me
COMMUNITY QUESTION
Main is not a valid member of PlayerGui.What does that mean?
1 answer
Two solutions I can think of.
Use WaitForChild.
local main = blah:WaitForChild("Main")
-- don't use a period unless it's referring to properties, like .Parent, in these cases
Use a Local Script.
Yeah. When dealing with UI, use LocalScripts for most of the cases, and whenever you can.
1 comment
0
WTH IS THIS!!!! This is the dumbest script I have ever seen
This discussion is preserved as it was. New answers, comments, and votes are closed.

7 comments
It means that Main is not a valid member of PlayerGui.
Is there a moderation reason if you didn't put enough effort to solve the problem?
It means that the player gui does not have a child named Main.
Script?
Um only thing i can think of is that main is in the client and you are using a normal script to get it so go to workspace properties and make FilteringEnabled false
Thats just bad practice.
You probably didn't use WaitForChild. Show the script next time.