Hello! I am working on a script currently and i am having a error which i tried to fix but I cant. Basicly this Script is in StarterCharacterScripts and its supposed to get the Players ID its parented to and put the ID into the Stringvalue I made. It isnt working and its giving me "nil index" errors, is there a way to fix this? heres my script I used
ID = game.Players.LocalPlayer.UserId
script.Parent.Value = ID

1 comment
check if it's a LocalScript. if it is then put the localscript in starterplayerscripts