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

(I FIXED IT MYSELF)?

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

5 comments

0

what is script.Parent.Parent here? where is this script located in the explorer?

0

The script is located in playergui so script.parent.parent should be the player

1

You should just use game.Players.LocalPlayer.UserId instead of script.Parent.Parent.UserId

0

It still doesn't work....

0

Maybe because it's an int value, Use a string value

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.