Instance: Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>Camoy Edited the Instance page.. |
>Camoy Edited the Instance page.. |
(No difference)
|
Revision as of 13:26, 10 August 2010
Instance
The Instance table offers several functions in order to create/manipulate ROBLOX created objects.
Creating Objects
Creating objects is very simple, you can find a list of objects in the Class Reference section of the Wiki. You must pass in the name of the object, and it will return that object.
Template:CodeExample print(Instance.new("Part"))
Will result in: Template:CodeExample Part
By default, all objects are parented to nil. If you have an object such as Part that is rendered, remember to parent it to the Workspace in order for it to be rendered. |
Constructors
Function | Description |
---|---|
Instance.new(val) | Returns an object with name using string val. |
Instance.Lock(val, player) | Sets a network enabled mutex for object val targeted at player. |
Instance.Unlock(val) | Removes the network enabled mutex for object val. |