Hey there, so I hav a folder under player’s character called “Pets”. Before the game even starts the pets folder is in StarterCharacterScripts. Then when the player equips a pet, then the pet model goes under the “Pets” folder. But when I reset my character or die. all the models in the folder is gone! Can someone help me?
Don’t put it in the character. StarterCharacterScripts contents get cloned into the character. When you die a new instance of your character is created. Place it somewhere else like in the player instance directly, or even server storage.
But I want it under player character so it will be organized.
Like @incapaxx said, all the contents in the StarterCharacterScripts are destroyed and cloned when the player dies. To fix this, just put the folder in ReplicatedStorage so that all clients can have access to the pets and you can clone it to the character when they respawn.
That is not really organized to put it there if you are going to lose it. Putting it in the player or in server storage makes more sense. I would vouch for the latter though, since it’s for storage.
But there is a chance that hackers to just clone the pets in Replicated Storage
The goal of Filtering Enabled is to prevent exploiter’s hacks from replicating. If they do add something it won’t replicate. ReplicatedStorage means its contents are accessible to the server and client, not that any changes an exploiter makes to it will replicate
What do you mean? StarterCharacter is even more vulnerable to exploitation than ReplicatedStorage will ever be. The best way to do this is ReplicatedStorage, and clone it into the character.