Here is my script:~~~~~~~~~~~~~~~~~ player = game.Players.LocalPlayer
script.Parent.Touched:Connect(function(hit)
if player.hit then
player.leaderstats.points.Value = points.Value + 1
end
end)
And then my LeaderBoard script~~~~~~~~~~~~~~~~~
game.Players.PlayerAdded:Connect(function(player)
stats = Instance.new("IntValue",player)
stats.Name = "leaderstats"
points = Instance.new("IntValue",stats)
points.Name = "Points"
end)

4 comments
I would recommend using remote events for this, to prevent hackers.(Depending on what your doing)
Your completely wrong bad suggestion
that was rude ;(
But its true