# Methods

| Method                      | Argument (Set) |
| --------------------------- | -------------: |
| `Dropdown:Button(<string>)` |       `string` |
| `Dropdown:Remove(<string>)` |       `string` |

### Example

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

```lua
local Players = game:GetService("Players")

for _,v in ipairs(Players:GetPlayers()) do
    Dropdown:Button(v.Name)
end

Players.PlayerAdded:Connect(function(Player)
    Dropdown:Button(Player.Name)
end)
```

{% endtab %}

{% tab title="Remove" %}

```lua
local Players = game:GetService("Players")

Players.PlayerRemoving:Connect(function(Player)
    Dropdown:Remove(Player.Name)
end)
```

{% hint style="warning" %}
You will be warned if the button does not exist.
{% endhint %}
{% endtab %}
{% endtabs %}
