About Elements
Elements are the most basic way to add interactivity to your script. Its the whole reason why we create GUIs and not just simple scripts.
View the sidebar on all the elements and how to create them in your groupbox/tabbox tab.
All base elements have the following Returns.
Returns
Void
:Set( <table> NewElementSettings, <string> NewIndex)
- Replaces all specified old values with new ones.
- Can also replace index.
Void
:Lock( <string> Reason)
- Locks the element from being interacted with.
Void
:Unlock()
- Unlocks the element to be interacted with.
Void
:Destroy()
- Destroys the element.
Table
.Values
- All the current Values (eg. CurrentValue, Name) of the Element.
GuiObject
.Instance
- The actual Instance of the Element within Roblox.
Notes
Important
For any Element that has a callback (or 2 for Binds), while it is fine to set it within the initial creation parameters,
I highly recommend using :Set({}) to set the callback after creating the Element. It is better to seperate Interface And Functionality.
However, it is all your preference.