It's a normal script within serverscriptservice. "RealMoney" is the name of my currency and isn't in a leaderboard. "Zombie" is the name of the model which is a zombie and inside zombie I named the humanoid to zombie. "boost" is the boost you get from pets. This only works once, for example when I kill 1 zombie it works then when I go to kill another it doesn't work.
game:GetService('Players').PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
local RealMoney = player:FindFirstChild("RealMoney")
local boost = player:FindFirstChild("CoinBoost")
local Zombie = game.Workspace.Zombie
Zombie:WaitForChild("Zombie").Died:Connect(function()
player.RealMoney.Value = player.RealMoney.Value + 1000 + boost.Value
end)
end)
end)
