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

[SOLVED] PlayerGui not a valid member of player?

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??

5 comments

1

Use WaitForChild on PlayerGui, as PlayerGui is one of those objects that should be waited for

0

Agreed. That is usually the problem.

0

oh i waited for everything behind it lol thanks

0

Especially when it works in studio but not in game.

0

Make sure to edit your question so it contains the text "[SOLVED]" so people know the problem has been resolved.

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.