I create a pet that, when the player equip, it will be in the player's character. but it will loss when the player dies, how can I fix this problem ?
✓ ANSWER ACCEPTED
How not to loss pets when player die?
1 answer
✓ Accepted answer
throughout this answer I will refer to the players pet as 'Pet'
- when the player gets the pet, clone it to game.Lighting using a localscript, you can add this code to an existing localscript, maybe the localscript where the player gets the pet.
game.Players.LocalPlayer.Character.Pet:Clone().Parent = game.Lighting
add this script to startercharacterscripts its a localscript
game.Lighting.Pet:Clone().Parent = game.Players.LocalPlayer.Character
this script will clone the pet from lighting to the players character any questions about the answer just ask below
3 comments
0
thank you, i will try it
0
how can i get pet when players equip 2 pets or 3 pets... ? it only works with 1 pets. maybe i can use loop for
0
maybe use a loop
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
can you post your script or scripts please?