1 | script.Parent.Touched:connect( function (hit) |
2 | if game.Players:GetPlayerFromCharacter(hit.Parent) then |
3 | player = game.Players:GetPlayerFromCharacter(hit.Parent) |
4 | player:FindFirstChild( "leaderstats" ).Points.Value = player:FindFirstChild( "leaderstats" ).Points.Value + 1 |
I fixed it, you're welcome!
Want it to wait before it can be used again? Here
1 | script.Parent.Touched:connect( function (hit) |
2 | if game.Players:GetPlayerFromCharacter(hit.Parent) then |
3 | player = game.Players:GetPlayerFromCharacter(hit.Parent) |
4 | player:FindFirstChild( "leaderstats" ).Points.Value = player:FindFirstChild( "leaderstats" ).Points.Value + 1 |
7 | script.Disabled = false |