My custom hat system doesn't save hats transparency once you die

I have made recently, a custom hat system.
Basically, hats are rigged in your character and
once you click the hat icon on the GUI,
the hat changes transparency
from 1 to 0 and makes it visible.

The problem is:
Lets say that you’ve made your character in my game
you picked glasses you changed color.
Once you die or Reset everything resets, every hat changes transparency including the colors changing back to the original one.

Is there anyway to prevent it from hats reseting transparency once you die and Save the transparency.
I’ve Tried values, yet it didn’t work
Anything that won’t require me to remove hats and re rig them lol
PS: The hats are rigged in the StarterCharacter i cannot move them or put them
anywhere else, at least in my knowledge.
TY.

Well you’d have to store these changes somewhere, like in some folder in the player or something. Then whenever they spawn, set transparency and color according to what values were stored in the folder.

2 Likes

Thank you. Ill try and see whats the outcome.

color saves thanks to you. Didn’t try the hats yet. If they work you’ll get the Solution marked.

Well apparently, it now works. Thank you very much and I hope you having a happy day!

2 Likes