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

Would SaveBoolean work without the value after the name too?

:SaveBoolean('HasPlayed') 

Would the above script work and save the value at whatever it was at?

I read ROBLOX's wiki on it, and they had

:SaveBoolean('HasPlayed', true)

so I'm not sure if it needs the second part in there or not. If it doesn't, how would I make it so SaveBoolean saves the boolean at whatever current value it holds?

1 answer

✓ Accepted answer

No, as that is the value that is saved. If you want to save a boolean value you have in your game, just do:

saved = player.SomeBooleanValue.Value
:SaveBoolean('WhateverName', saved)

Replacing with whatever name you want and the location to the value being saved of course.

1 comment

0

Alright. Thank you.

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