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

`ScreenGui is not a valid member of PlayerGui` error?

Asked by
Dog2puppy 168
6 years ago

I've been trying to make a matchmaking gui, and to do some debugging, I've been using the developer console, however, when I run print(game.Players.Dog2puppy.PlayerGui.ScreenGui.Frame.FindGameFrame.Id.Value) it returns ScreenGui is not a valid member of PlayerGui. Id is a StringValue containing a MongoDB document value.

1
If your game is FE, the server can't access the descendants of each clients' gui. Rare_tendo 3000 — 6y
0
Thanks! Didn't know this was a thing. Dog2puppy 168 — 6y

1 answer

Log in to vote
0
Answered by
angeI1001 123
6 years ago

If you are doing this from a serverscript, then it won't work. You can either use a localscript or a RemoteEvent.

More about RemoteEvent: https://www.robloxdev.com/api-reference/class/RemoteEvent

Hope this helped!

Ad

Answer this question