How do you reset the roblox backpack once someone dies because right now when someone dies the items in there backpack stays there!
COMMUNITY QUESTION
How do you reset the roblox backpack once somone dies?
2 answers
Don't ask people to make scripts for you, this isn't a "make me a script request website". When you have an error on your own script, then come and ask a question about it. If you want to learn how to script there are amazing sites like the Roblox Wiki to help you out: http://wiki.roblox.com/index.php?title=Main_Page
You should also read: https://scriptinghelpers.org/blog/posting-good-questions-and-answers-on-scripting-helpers
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
character:WaitForChild("Humanoid").Died:Connect(function)
--code that will be run when any player in the game dies
end)
end)
end)
To actually clear a player's backpack, you could ClearAllChildren
player.Backpack:ClearAllChildren()
And that would remove everything in the backpack.
1 comment
0
ok thanks!
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
ok