I'm currently trying to load in a player's powers by cloning them from serverstorage to the player's backpack. It works, but when the player dies they disappear. How can I fix this?
✓ ANSWER ACCEPTED
Scripts inside starterpack disappear after player dies. How can I prevent this?
2 answers
✓ Accepted answer
Put it in the player starterpack. You prob only put it in the player backpack.
You should probably just use a .CharacterAdded event so when the player respawns, you can select specific tools to add to their backpack again. As I recall, you can use .CharacterAdded and it will fire each time a character is added.
However, you could do a script like this:
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
-- put the darn dang tools in their backpack
end)
end)
1 comment
0
i tried it dont work
This discussion is preserved as it was. New answers, comments, and votes are closed.

6 comments
I put it in the backpack. Can you put it in a player's starterpack from a server script?
Players have Backpack and StarterGear (which is inside the player), StarterGear is like a starterpack, but for an individual player, so you would only need to put it in the StarterGear
Player would need to respawn to get the tools, but you could make it so the players get the tool to their backpack and their startergear at the same time
sry i said tool but i really anything could be in the backpack/startergeat
you get what i mean
I did try that. But it only went to either backpack or startergear. Wouldn't go to both. How could I fix that?