User:NXTBoy/Instance: Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>NXTBoy No edit summary |
>NXTBoy More info copied from Anaminus' mockup |
||
Line 2: | Line 2: | ||
|name=Instance | |name=Instance | ||
|methods= | |methods= | ||
{{{{{method}}} |Instance|Clone | | {{{{{method}}} |Instance|ClearAllChildren |Removes all of this object's children.}} | ||
{{{{{method}}} |Instance|FindFirstChild | | {{{{{method}}} |Instance|Clone |Returns a copy of this object and all its children.}} | ||
{{{{{method}}} |Instance|GetChildren | | {{{{{method}}} |Instance|Destroy |Removes this object and all of its children, indicating that this object is no longer used.}} | ||
{{{{{method}}} |Instance|GetFullName | | {{{{{method}}} |Instance|FindFirstChild |Returns the first child of this object whose name matches the first argument.}} | ||
{{{{{method}}} |Instance|IsAncestorOf | | {{{{{method}}} |Instance|GetChildren |Returns a table of this object's children.}} | ||
{{{{{method}}} |Instance|IsDescendantOf | | {{{{{method}}} |Instance|GetDebugId |Returns a unique identifier for this object.}} | ||
{{{{{method}}} |Instance|Remove | | {{{{{method}}} |Instance|GetFullName |Returns a string that shows this object's hierarchical path.}} | ||
{{{{{method}}} |Instance|IsA |Used to check this object's class or a class it inherits from.}} | |||
{{{{{method}}} |Instance|IsAncestorOf |Returns whether this object is an ancestor of another object.}} | |||
{{{{{method}}} |Instance|IsDescendantOf |Returns whether this object is a descendant of another object.}} | |||
{{{{{method}}} |Instance|Remove |Use ClearAllChildren or Destroy instead.}} | |||
{{{{{method}}} |Instance|children |Use GetChildren instead.}} | |||
{{{{{method}}} |Instance|clone |Use Clone instead.}} | |||
{{{{{method}}} |Instance|destroy |Use Destroy instead.}} | |||
{{{{{method}}} |Instance|findFirstChild |Use FindFirstChild instead.}} | |||
{{{{{method}}} |Instance|getChildren |Use GetChildren instead.}} | |||
{{{{{method}}} |Instance|isA |Use IsA instead.}} | |||
{{{{{method}}} |Instance|isDescendantOf |Use IsDescendantOf instead}} | |||
{{{{{method}}} |Instance|remove |Use ClearAllChildren or Destroy instead.}} | |||
|properties= | |properties= | ||
{{{{{property}}}|Instance|Name | | {{{{{property}}}|Instance|Archivable |Determines whether this object will be saved when the game is saved.}} | ||
{{{{{property}}}|Instance|Parent | | {{{{{property}}}|Instance|ClassName |The string name of this object's most derived class.}} | ||
{{{{{property}}}|Instance| | {{{{{property}}}|Instance|DataCost |The amount of data units it takes to save this object with Data Persistence.}} | ||
{{{{{property}}}|Instance|className | | {{{{{property}}}|Instance|Name |A string that identifies this object.}} | ||
{{{{{property}}}|Instance|Parent |The Instance that is directly above this object in the tree.}} | |||
{{{{{property}}}|Instance|RobloxLocked |Controls the protection of this object.}} | |||
{{{{{property}}}|Instance|className |Use ClassName instead.}} | |||
|events= | |events= | ||
{{{{{event}}} |Instance|AncestryChanged | | {{{{{event}}} |Instance|AncestryChanged |Fired after the Parent of this object and any of this object's ancestors change.}} | ||
{{{{{event}}} |Instance|Changed | | {{{{{event}}} |Instance|Changed |Fired after the value of a Property in this object changes.}} | ||
{{{{{event}}} |Instance|ChildAdded | | {{{{{event}}} |Instance|ChildAdded |Fired after a child is added to this object.}} | ||
{{{{{event}}} |Instance|ChildRemoved | | {{{{{event}}} |Instance|ChildRemoved |Fired after a child is removed from this object.}} | ||
{{{{{event}}} |Instance|DescendantAdded | | {{{{{event}}} |Instance|DescendantAdded |Fired after an Instance is parented to this object, or any of this object's descendants.}} | ||
{{{{{event}}} |Instance|DescendantRemoving| | {{{{{event}}} |Instance|DescendantRemoving|Fired before an Instance is unparented from this object, or any of this object's descendants.}} | ||
{{{{{event}}} |Instance|childAdded |Use ChildAdded instead.}} | |||
}}</onlyinclude></includeonly> | }}</onlyinclude></includeonly> | ||
{{User:NXTBoy/object documentation/main|Instance}} | {{User:NXTBoy/object documentation/main|Instance}} |