Still try what I suggested. The way you said it, you put the scripts in StarterPlayer, not StarterPlayerScripts. StarterPlayerScripts is the appropriate parent for a player’s LocalScripts.
Are you sure you used a local script and not a server script? The reason it might work in starterpack and not in starterplayer is because it’d get cloned in player’s backpack and server scripts can run in there and the reason it “stops running” once you reset is because server scripts only run once the server starts and don’t stop.
so i dont know much how to program scripts
the script is an press key to animate and the others are punch, kick etc
so, i changed starterpack to starterplayer and the same error happen
I don’t know if server script means when the server receives data from the keys pressed by the player or if the player presses the key and activates an event on the server. I also have doubts about a backpack datastore like
So is the issue solved? Your problem that you stated is that scripts are removing themselves when the player dies, so what the script does is irrelevant.