Toggle
A toggle switch UI component that allows users to switch between two states.
Properties
| Property | Type | Default |
|---|---|---|
Name | string | "UIToggle" |
AbsoluteSize | any | nil |
AbsolutePosition | any | nil |
Size | UDim2 | UDim2.new(0, 56, 0, 28) |
Value | boolean | false |
OffColor3 | Color3 | Color3.new(0.3, 0.3, 0.3) |
OnColor3 | Color3 | Color3.new(0.02, 0.5, 1) |
HandleColor3 | Color3 | Color3.new(1, 1, 1) |
OnValueChanged | any | nil |
Visible | boolean | true |
Functions
onChanged
Arguments
valueReturns
This function returns nothing.
API
instance:onChanged(value)