Make items in the Player's Inventory fall out when they die? Do I have to use a LocalScript, or a regular script? If any of those two, where do I put them (Say Workspace, or StarterPack)
COMMUNITY QUESTION
How do I?
1 answer
To do this then what you have to do is just take everything in their backpack and make it's parent the workspace. Pretty fun and simple(:
--In the character
script.Parent.Humanoid.Died:connect(function()
plr = game.Players:GetPlayerFromCharacter(script.Parent)
c = plr.Backpack:GetChildren()
for i = 1,#c do
c[i].Parent = game.Workspace
end
end)
Use a Died event to find when they die, get the children of their backpack, and parent them to the workspace.
-Goulstem
This discussion is preserved as it was. New answers, comments, and votes are closed.
