Hello! I'm trying to set a int value in a player gui to the player's userid but it isn't working P.S this is in a local script
script.Parent.Value.Value = script.Parent.Parent.UserId
Hello! I'm trying to set a int value in a player gui to the player's userid but it isn't working P.S this is in a local script
script.Parent.Value.Value = script.Parent.Parent.UserId
I fixed it
This discussion is preserved as it was. New answers, comments, and votes are closed.
5 comments
what is script.Parent.Parent here? where is this script located in the explorer?
The script is located in playergui so script.parent.parent should be the player
You should just use game.Players.LocalPlayer.UserId instead of script.Parent.Parent.UserId
It still doesn't work....
Maybe because it's an int value, Use a string value