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

How to reload saved character customization after death?

Hi, just joined here. Sorry in advance if i made a mistake in this post.

I have created a character customization script, it works. Everything works perfectly except that when the character died, it didn't reload the user's saved customization. I have searched here and there and it pinpoints toward telling me to use the "CharacterAdded" function. However i have just started scripting, so i couldn't really grasp the mechanic of using that CharacterAdded thing.

Anyway, some details, the way i store the player's customization is by creating a value which will be stored into Player.LocalPlayer and saved to data storage after button press. It's working perfectly. Also I managed to write a line of function to read those value and load it into the players character. This function runs when PlayerAdded is run. The only problem is i don't know how to run the function each time the character respawns. That's all, Thanks.

1 answer

✓ Accepted answer

Hello! There is actually a special folder in Roblox that runs all of the scripts inside every time the player's character spawns. You kind find it under Starter Player ==> Starter Character Scripts.

Screenshot

Best of luck on your game and development career! :D

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