Skip to main content

Interactions In Luna

Add easy ways for your user to interact with your script.

Universal Methods/Properties

To Access An Element's Values, you can simply do:

ElementName.Settings

To Update An Element's Values Or Settings you can use :Set

tip

For Dropdowns, if you want to add an option instead of refreshing, you can do local table = Dropdown.Settings.Options; table.insert(table, "New option name"); Dropdown:Set({ Options = table })

ElementName:Set(
put your new settings table here. unspecified elements will use the previous values.
)

To Destroy An Element, You Can Use :Destroy

ElementName:Destroy()