Ad
Log in to vote
1

Scripts inside starterpack disappear after player dies. How can I prevent this?

Asked by 7 months ago

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?

2 answers

Log in to vote
1
Answered by 7 months ago

Put it in the player starterpack. You prob only put it in the player backpack.

0
I put it in the backpack. Can you put it in a player's starterpack from a server script? XxWingKing 96 — 7mo
0
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 PapalMache 15 — 7mo
0
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 PapalMache 15 — 7mo
0
sry i said tool but i really anything could be in the backpack/startergeat PapalMache 15 — 7mo
View all comments (2 more)
0
you get what i mean PapalMache 15 — 7mo
0
I did try that. But it only went to either backpack or startergear. Wouldn't go to both. How could I fix that? XxWingKing 96 — 7mo
Ad
Log in to vote
0
Answered by
Koriyoc 20
7 months ago

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)

0
i tried it dont work XxWingKing 96 — 7mo

Answer this question