Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Saving new values to DataStores that weren't originally there?

Asked by 8 years ago

Can DataStores save new values, such as ObjectValues, StringValues, etc that weren't listed inside the script? I'm trying to make a custom clothing store system where players can buy modeled clothing in-game and I'm wondering if it's possible to make it so the DataStore saves an ObjectValue of the model if they buy it, instead of just using a BoolValue to check if the player bought it. Right now I currently have it so all possible clothing to get use BoolValues and if they're set to true it means the player owns them, however I plan to add more options and I don't want to have to either update the script or make a new one. Is it possible to do this and if you know how, could you please explain?

0
I don't believe it is possible. ObjectValues focus one single object, each unique. Even the same object in a different server wouldn't be accepted as the same object, so that is why it is not possible to save ObjectValues with DataStore. TheDeadlyPanther 2460 — 8y
0
I see, any ideas or other solutions to this? I would try DataPresistence, but I'd rather stick to DataStores since I already know how to use them more. OneTruePain 191 — 8y

Answer this question