# Enum Parameter

The enum parameter is the best way of selecting objects of your game, It has compatibility with almost every object that exists on studio and it can create systems for yourself easily.

## How to register it?

Code:

<pre class="language-lua"><code class="lang-lua">MyCommand:AddParameter("Enum", {
<strong>    Name = "Amazing Enum", --// Parameter name.
</strong>    Items = game.Workspace:GetChildren(), --// Table of items in the list.
    SelectionRange = NumberRange.new(1, 5) --// Minimum &#x26; Maximum of items you can select.
})
</code></pre>

If you did it correctly, You should see the parameter appear on the parameters section.

<div><figure><img src="https://2544013832-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fc9bK8pux8ECQEv3nGxVN%2Fuploads%2FflO4POk13txjmjzz7zjs%2Fimage%20(10).png?alt=media&#x26;token=f9afa85c-ea60-4270-8720-195412db8c9a" alt=""><figcaption></figcaption></figure> <figure><img src="https://2544013832-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fc9bK8pux8ECQEv3nGxVN%2Fuploads%2FbrQ8qVVindk1q628Js6O%2Fimage%20(11).png?alt=media&#x26;token=6356ab65-7e7d-4580-bbbf-6bf1ecc5e21b" alt=""><figcaption></figcaption></figure></div>
