I'm making a script where when the humanoid dies, then it awards him/her points. However, it doesn't. Help?
game:GetService('Players').PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(character)
character:WaitForChild("Humanoid").Died:connect(function()
player.leaderstats.Explosions.Value = game.Players.LocalPlayer.leaderstats.Explosions.Value + 1
player.leaderstats.Money.Value = game.Players.LocalPlayer.leaderstats.Money.Value + 10
end)
end)
end)

3 comments
Please provide more information. Where is it located, and script type?
It's located in the StarterPlayerScripts, and it's a local script.
Are there any errors