i have a script that works fine in studio but it just dies in an actual game heres the error:
in the dev console it says : PlayerGui not a valid member of player how can i fix this??
COMMUNITY QUESTION
[SOLVED] PlayerGui not a valid member of player?
1 answer
Server Scripts outside of playergui can't access playergui in FE
3 comments
0
This should be a comment. The server can only access objects in PlayerGui if the server placed it there.
0
Server Script's can access PlayerGui, not its contents (unless added from server)
0
it wasnt in a server script
This discussion is preserved as it was. New answers, comments, and votes are closed.

5 comments
Use WaitForChild on PlayerGui, as PlayerGui is one of those objects that should be waited for
Agreed. That is usually the problem.
oh i waited for everything behind it lol thanks
Especially when it works in studio but not in game.
Make sure to edit your question so it contains the text "[SOLVED]" so people know the problem has been resolved.