Skip to Content
Kinemium

BoolValue

Store a single boolean in the object tree.

BoolValue holds one true or false flag as an instance. It's useful for feature toggles and per-object state that other scripts read from the hierarchy.

Getting started

local enabled = Instance.new("BoolValue")
enabled.Name = "PvPEnabled"
enabled.Value = false
enabled.Parent = game:GetService("ReplicatedStorage")

Properties

PropertyTypeAccessDefaultDescription
ValuebooleanRead/writetrueThe stored flag.

The default is true, so set it explicitly when the intended default is off.

Notes

  • Inherits from ValueBase, which adds no members.
  • Cloning copies the flag.
  • Assigning non-boolean values isn't a supported conversion; pass true or false.

See also

  • StringValue and NumberValue for other simple values.
  • CollectionService for label-style grouping with tags.

On this page