# Methods

<table><thead><tr><th width="306">Method</th><th align="right">Argument (Set / Get)</th></tr></thead><tbody><tr><td><code>Box.Title</code></td><td align="right"><code>string / void</code></td></tr><tr><td><code>Box.Text</code></td><td align="right"><code>string / void</code></td></tr><tr><td><code>Box.PlaceHolder</code></td><td align="right"><code>string / void</code></td></tr><tr><td><code>Box.TextColor</code></td><td align="right"><code>Color3 / void</code></td></tr><tr><td><code>Box.Font</code></td><td align="right"><code>string or Enum.Font / void</code></td></tr><tr><td><code>Box.TextSize</code></td><td align="right"><code>number / void</code></td></tr><tr><td><code>Box.Visible</code></td><td align="right"><code>boolean / void</code></td></tr><tr><td><code>Box.Type</code></td><td align="right"><code>string or Enum.TextInputType</code></td></tr><tr><td><code>Box:GetPlayer</code></td><td align="right"><code>function(Input)</code></td></tr></tbody></table>

### Example

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

## Set

<pre class="language-lua"><code class="lang-lua"><strong>Box.Title = "New Title"
</strong></code></pre>

###

## Get

```lua
print(Box.Title)
```

{% endtab %}

{% tab title="Text" %}

## Set

<pre class="language-lua"><code class="lang-lua"><strong>Box.Text = "New Text"
</strong></code></pre>

###

## Get

```lua
print(Box.Text)
```

{% endtab %}

{% tab title="PlaceHolder" %}

## Set

<pre class="language-lua"><code class="lang-lua"><strong>Box.PlaceHolder = "Type here..."
</strong></code></pre>

###

## Get

```lua
print(Box.PlaceHolder)
```

{% endtab %}

{% tab title="TextColor" %}

## Set

<pre class="language-lua"><code class="lang-lua"><strong>Box.TextColor = Color3.fromRGB(255, 255, 255)
</strong></code></pre>

###

## Get

```lua
print(Box.TextColor)
```

{% endtab %}

{% tab title="Font" %}

## Set

<pre class="language-lua"><code class="lang-lua"><strong>Box.Font = Enum.Font.Arial
</strong></code></pre>

```lua
Box.Font = "Arial"
```

###

## Get

```lua
print(Box.Font)
```

{% endtab %}

{% tab title="TextSize" %}

## Set

<pre class="language-lua"><code class="lang-lua"><strong>Box.TextSize = 15
</strong></code></pre>

###

## Get

```lua
print(Box.TextSize)
```

{% endtab %}

{% tab title="Visible" %}

## Set

<pre class="language-lua"><code class="lang-lua"><strong>Box.Visible = false
</strong></code></pre>

###

## Get

```lua
print(Box.Visible)
```

{% endtab %}

{% tab title="Type" %}

## Set

```lua
Box.Type = Enum.TextInputType.Number
```

<pre class="language-lua"><code class="lang-lua"><strong>Box.Type = "Number"
</strong></code></pre>

{% hint style="info" %}
You can see the allowed types [here](https://uis.gitbook.io/turtle-library/api-reference/box/parameters/..#input-types) and [here](https://create.roblox.com/docs/reference/engine/enums/TextInputType)
{% endhint %}

###

## Get

```lua
print(Box.Type)
```

{% endtab %}

{% tab title="GetPlayer" %}

```lua
Main:Box("Player", function(Text, Focused, Func)
    if Focused then
        for _,v in pairs(Func:GetPlayer(Text)) do
            print(v.Name)
        end
    end
end)
```

<figure><img src="https://3976361882-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdmhMqeTOjlv8oOvwP6NX%2Fuploads%2Fe2nDNN3PACvuTIuf0gUG%2FCaptura%20de%20pantalla%202022-12-03%20213816.png?alt=media&#x26;token=a1617734-0dd4-42d7-aaf0-574fcc150de9" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}
