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

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

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

✓ Accepted answer

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

6 comments

0

I put it in the backpack. Can you put it in a player's starterpack from a server script?

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

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

0

sry i said tool but i really anything could be in the backpack/startergeat

0

you get what i mean

0

I did try that. But it only went to either backpack or startergear. Wouldn't go to both. How could I fix that?

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.