I would like to have some information stored in a place where I can share player information between clients and have different scripts be able to modify values. I was thinking of using ObjectValues and placing them inside the player object or maybe using Attributes, but when the player leaves the game I would like to read the values and store them. But I don’t if this would be safe considering the player could leave with the objects then the information would be lost. I know I could use the Players.PlayerRemoving
event, but my mind can’t help to consider this possibility. Obviously I could store things inside of ReplicatedStorage, but wouldn’t it be logical to place player information within the player object?
So how would you guys approach sharing player data between clients and scripts?
TL;DR: It is safe to put ObjectValues inside of the Player object? When they leave would the information be lost?