I want to add a numbervalue into a player when the join the game, but how do i do this? Thanks.
✓ ANSWER ACCEPTED
How do I add a value to a player?
1 answer
✓ Accepted answer
game.Players.PlayerAdded:Connect(function (player)
local x = Instance.new("IntValue")
x.Parent = player
x.Name = "Put The Name of the Value here"
x.Value = 0 --change to the value you want it to be
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
You forgot to add a ) at the end of "end". However, it works. Thank you.
oh you are right,sorry for mistake, i will edit it.