I start with a sword in game, when I die, I lose my sword forever? Message me if you need more details.
✓ ANSWER ACCEPTED
I start with a sword in game, when I die, I lose my sword forever?
1 answer
✓ Accepted answer
player = game.Players.LocalPlayer
weapon = player.Backpack.Weapon --or wherever your weapon is located
player.CharacterAdded:connect(function(character)
local hum = character:FindFirstChild("Humanoid")
hum.Died:connect(function()
local newWeapon = weapon:Clone()
wait(5)
newWeapon.Parent = player.Backpack
end)
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.
