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

How do I change bool values?

Asked by
A_Mp5 222 Moderation Voter
3 years ago

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

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 ElongatedMongoose 138 — 3y

1 answer

Log in to vote
2
Answered by 3 years ago

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.

0
What if there was a "On" value in a gui? would changing that to local would work? A_Mp5 222 — 3y
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. ArsonMcFlames 363 — 3y
Ad

Answer this question