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

How do I change bool values?

How do you change the value property of the bool value instance, it just won't work

1 comment

0

What do you mean, all you have to do is Instance.Value = true or Instance.Value = false. I think I might not understand your question

1 answer

✓ Accepted answer

If you are using a normal script, it should go something like this.

In this script, we put a bool value and a script in the workspace.

local boolValue = script.Parent.BoolValue
wait(3) --This is to wait a bit after the game loads so you can see the change
boolValue.Value = true --Remember to reference the value property of the boolValue.

Unfortunately, if you are using a local script, you can't unless you use remote events.

2 comments

0

What if there was a "On" value in a gui? would changing that to local would work?

0

What do you mean an "On" value, do you mean a bool value that is true or a string value? Roblox does not really allow any sort of change in bool values or any types of values through local scripts. The only option is to use remote events or functions.

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