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

Saving true false boolean variables in datastore?

Hi all! Sorry if this seems like a silly question but, is it possible to save true false variables in a datastore? I have a part that triggers a cutscene but I only want the player to see it once. After it's triggered a variable will be set to false to prevent the player from seeing it again but it will not save when the player leaves and they can watch the cutscene again. Is there a way I can save a variable or debounce to prevent this? Thanks in advance!

1 comment

0

it is

1 answer

No, you can't. I found that out the hard way. Datastore only saves intvalues, numbervalues and stringvalues. To bypass that, I made a system with intvalues wich 0 is false and 1 is true. Or, you can make a table, and then encode it into json formatted strings, wich is saveable since it is a string, and then decode back into lua tables.

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