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

Why do local scripts reset on death?

I have a script that creates a Part when the Player first joins. But if they reset, the Part gets created again.

1 answer

✓ Accepted answer

It depends on where you put them actually.

If you LocalScript is in PlayerGui or in StarterCharacterScripts, every time your character dies those scripts will be cloned into their respective places and will run again. If you only want the LocalScript to run once, I'd recommend moving the script to StarterPlayerScripts. Then, it will only load once.

1 comment

0

Ahh that makes Sense.

This discussion is preserved as it was. New answers, comments, and votes are closed.