Hello! So I'm having an issue with this npc cash for kill script. It is placed inside my npc (Zombie) and after a player kills it, they receive 10 cash. However, it stops rewarding the player cash after the first "10 cash":
game.Players.PlayerAdded:Connect(function(player) local Zombie = script.Parent -- npc model local Humanoid = Zombie.Humanoid -- humanoid inside the model local Cash = player.leaderstats.Cash -- the money local CashReward = 10 -- amount of money I want to give when npc dies Humanoid:GetPropertyChangedSignal("Health"):Connect(function() if Humanoid.Health == 0 then Cash.Value = Cash.Value + CashReward end end) end)