I am trying to make a part that if it detects my userid, it will change the BrickColor to gold, and I have tried this:
if game.Players.LocalPlayer.userid == ("1108976841") then
script.parent.BrickColor = BrickColor.new("Gold")
end
This does not seem to work. Does anyone have a solution?

3 comments
note: i forgot to mention this was in a local script
oh ok, just use the first script then however, please make sure that the local script is a descendant (inside of) the player, or the player's character or else it will not work
Thank you so much! this advice worked. :D