Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

I start with a sword in game, when I die, I lose my sword forever?

I start with a sword in game, when I die, I lose my sword forever? Message me if you need more details.

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.