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

Would SaveBoolean work without the value after the name too?

Asked by 10 years ago
: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

Log in to vote
1
Answered by
Sublimus 992 Moderation Voter
10 years ago

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.

0
Alright. Thank you. Devotional 210 — 10y
Ad

Answer this question