I made a StarterCharacter, with an IntValue inside of the character.
I want the IntValue's value in the character to go up by two when I touch a part.
script.Parent.Touched:Connect(function(plr) plr.LocalPlayer.Character.Value.Value = plr.LocalPlayer.Character.Value.Value + 2 --Isn't working, and not giving an error. print("plus 2") --Isn't printing due to line 3 not working end)
Like Donut792 said, use plr.Parent
CHANGE YOUR SCRIPT TO A SERVER SCRIPT!
script.Parent.Touched:Connect(function(plr) plr.Parent.Value.Value = plr.Parent.Character.Value.Value + 2 --Isn't working, and not giving an error. print("plus 2") --Isn't printing due to line 3 not working end)