i have tried things like "if script.Parent.Health == 0 then 2 gold.value = gold.value +1" and "if Humanoid.Health == 0 then game.Player.leaderstats.gold.Value = game.Player.leaderstats.gold.Value.new(game.Player.leaderstats.gold.Value+10)"
neither of these worked, as my score stayed at 0. the currency here is Gold
Make it so when you hit the NPC, you create an objectvalue named the player who attacked, then use the humanoid.Died function to check when the NPC is dead, and if dead, find the name of the objectvalue.Value in players and add to their stats.