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 ?
throughout this answer I will refer to the players pet as 'Pet'
1) 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