How do I change this script from when the player dies money is added to when a zombie called "Humanoid" in workspace dies money is granted.
game:GetService('Players').PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
character:WaitForChild(player).Died:Connect(function()
player.RealMoney.Value = player.RealMoney.Value + 1000
end)
end)
end)

2 comments
How can i show you the properties
"Humanoid" is the name of the zombie and its parent is workspace