# Methods

<table><thead><tr><th width="336">Method</th><th align="right">Argument (Set / Get)</th></tr></thead><tbody><tr><td><code>Toggle.Text</code></td><td align="right"><code>string / void</code></td></tr><tr><td><code>Toggle.TextColor</code></td><td align="right"><code>Color3 / void</code></td></tr><tr><td><code>Toggle.Font</code></td><td align="right"><code>Enum.Font or string / void</code></td></tr><tr><td><code>Toggle.TextSize</code></td><td align="right"><code>number / void</code></td></tr><tr><td><code>Toggle.Visible</code></td><td align="right"><code>boolean / void</code></td></tr><tr><td><code>Toggle.State</code></td><td align="right"><code>boolean / void</code></td></tr><tr><td><code>Toggle.StateChanged</code></td><td align="right"><code>Signal</code></td></tr></tbody></table>

### Example

{% tabs %}
{% tab title="Text" %}

## Set

```lua
Toggle.Text = "New Toggle"
```

###

## Get

```lua
print(Toggle.Text)
```

{% endtab %}

{% tab title="TextColor" %}

## Set

```lua
Toggle.TextColor = Color3.fromRGB(255, 255, 255)
```

###

## Get

```lua
print(Toggle.TextColor)
```

{% endtab %}

{% tab title="Font" %}

## Set

```lua
Toggle.Font = Enum.Font.Arial
```

```lua
Toggle.Font = "Arial"
```

###

## Get

```lua
print(Toggle.Font)
```

{% endtab %}

{% tab title="TextSize" %}

## Set

```lua
Toggle.TextSize = 15
```

###

## Get

```lua
print(Toggle.TextSize)
```

{% endtab %}

{% tab title="Visible" %}

## Set

```lua
Toggle.Visible = false
```

###

## Get

```lua
print(Toggle.Visible)
```

{% endtab %}

{% tab title="State" %}

## Set

```lua
Toggle.State = false
```

###

## Get

```lua
print(Toggle.State)
```

##

## Changed

```lua
Toggle.StateChanged:Connect(function(State, Func)
    print(("The state of %s has been %s."):format(Func.Text, State and "enabled" or "disabled"))
end)
```

{% endtab %}
{% endtabs %}
