Still have questions? Join our Discord server and get real time help.
0

# A Script where it takes a players cash and gives it to another player when the player is dead?

4d0z 2
14 days ago

Exactly what the title says. I'll elaborate more. Let's say I kill a player with 100 points. when the player is killed, it resets the dead player's points to zero and you get all of the player's points.

Here's what I have so far.

game.Players.PlayerAdded:Connect(function(player)
local leaderstats = Instance.new("Folder")

-- Display an 'IntValue' on leaderboard
local Power = Instance.new("IntValue")
Power.Name = "Power"
Power.Value = 150

character:WaitForChild("Humanoid").Died:connect(function()
local tag = character.Humanoid:FindFirstChild("creator")
if tag ~= nil then
if tag.Value ~= nil then
Power.Value = Power.Value +10
end
end
end)
end)
end)

0
thats cruel TheluaBanana 859 — 14d
0
i know ;) 4d0z 2 — 14d