Hey! Me and my friend tested my game and when someone kills someone, no one gets cash.
Here is the script
game.Players.PlayerAdded:Connect(function(player)
local folder = Instance.new(“Folder”)
folder.Name = “leaderstats”
folder.Parent = player
local cash = Instance.new("IntValue")
cash.Name = "Cash"
cash.Value = 0
cash.Parent = folder
player.CharacterAdded:Connect(function(character)
character.HumanoidDied:Connect(function()
local tag = character.Humanoid:FindFirstChild("creator")
if tag ~= nil then
local player = tag.Value
local bounty = 1
local leaderstats = player:WaitForChild("Leaderstats")
leaderstats.Cash.Value = leaderstats.Cash.Value + bounty
end
end)
end)
end)
Thank you,
Hunter