Hi!
I don't really know why this doesn't work. Could someone help me?
EDIT: It acutally only gives coins on some jumps.
1 | game:GetService( "Players" ).PlayerAdded:Connect( function (player) |
2 | player.CharacterAdded:Connect( function (character) |
3 | character.Humanoid.Jumping:Connect( function () |
4 | player.leaderstats.Coins.Value = player.leaderstats.Coins.Value + 1 |
5 | end ) |
6 | end ) |
7 | end |