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.
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!