Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how do you make a cash for kill script? (that gives you money when you kill a player)

Asked by
Clorize 31
5 years ago

hello i am trying to make a cash for kill script for my pvp game, the tutorials on youtube only work with free model weapons

game.Players.PlayerAdded:Connect(function(player)
    local stats = Instance.new("IntValue",player)
    stats.Name = "leaderstats"
    local cash = Instance.new("IntValue",stats)
    cash.Name = "Cash"
    cash.Value = 0
    player.CharacterAdded:Connect(function(character)
        print(character)
        character.Humanoid.Died:Connect(function()
            --cash for kill
        end)
    end)
end)
0
why would that impact their ability to work with your own weapons? theking48989987 2147 — 5y
0
huh? i dont know how to add a "creator" value so maybe thats the issue Clorize 31 — 5y

Answer this question