I am making a script that gives everybody "cash" (leaderstats name) if this zombie npc dies. My current code doesn't work. If you'd like a look, here it is. Thank you in advance.
local Humanoid local Leaderstats = workspace:FindfirstChild("leaderstats")
if Humanoid.Health <2 then Leaderstats.Cash.Value = Leaderstats.Cash.Value +2 end

1 comment
make it so when the zombie dies , it loops through all the players in the game and gives them cash