Instance
Instance
Instance.new()
. Because this is an abstract class.Properties
name: string
Returns the name of the Instance
Functions
FindChild(string name)
Returns the child else returns null. An example:
FindFirstChild(string name)
Returns the child with the name specified in the name
parameter; however, if the child does not exist, then it’ll return Nil
. An example:
anchored: bool
Returns if Instance
is anchored or not.
Destroy()
Destroys the Instance
. An example:
IsA()
Returns the type of the object as a string.
new(string className)
(static)
Create a new instance. An example:
SetAttribute(string attribute_name, object attribute_value)
This will set a custom assigned attribute. Which can be accessed by also other scripts. Please remember that this will overwrite any existing attributes!
GetAttribute(string attribute_name)
This will get a custom assigned attribute. Which can be accessed by also other scripts.
GetChildren()
Returns Instance[]
(Instance array) with the children. An example:
Signals
OnMouseEntered
This signal is called when a mouse hovers over the Instance
. An example:
OnMouseExited
This signal is called when a mouse leaves over the Instance
. An example: