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

How to set a value for a BoolValue?

Asked by 6 years ago

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?

0
you should take a look at the wiki. User#5423 17 — 6y
0
local bool = game.ReplicatedStorage bool.Value = nil or bool.Value = false or bool.Value = true abnotaddable 920 — 6y
0
*game.RepStor.Bool abnotaddable 920 — 6y

1 answer

Log in to vote
0
Answered by
DanzLua 2879 Moderation Voter Community Moderator
6 years ago

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
0
This is not how it works. User#5423 17 — 6y
0
then how it works? yair1321 0 — 6y
0
@kingdom5 wtf are you talking about, this is exactly how you change the value of a boolvalue DanzLua 2879 — 6y
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 chess123mate 5873 — 6y
Ad

Answer this question