I know its maybe easy but im a beginner and ive searched on youtube and on the forums and havent find an answer. How can i set a value of true and not true for a boolvalue?
COMMUNITY QUESTION
How to set a value for a BoolValue?
1 answer
Well when we have a value instance we can access or change the value of it by changing its Value property
local v = Boolvalue
print(v.Value)
v.Value=true
4 comments
0
This is not how it works.
0
then how it works?
0
@kingdom5 wtf are you talking about, this is exactly how you change the value of a boolvalue
0
Idk what kingdom5 is talking about, DanzLua is correct. To add to it, if you want to make a new BoolValue, you might do: local v = Instance.new("BoolValue") If you want to make it the opposite value of what it is currently, do: v.Value = not v.Value
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
you should take a look at the wiki.
local bool = game.ReplicatedStorage bool.Value = nil or bool.Value = false or bool.Value = true
*game.RepStor.Bool