RBX.lua.Script (Object): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>Mindraker mNo edit summary |
>GoldenUrg Added description details |
||
Line 2: | Line 2: | ||
__NOTOC__ | __NOTOC__ | ||
A Script in Roblox is a type of object that hold a section of Lua code. | A Script in Roblox is a type of object that hold a section of Lua code. A script will execute on server and has access only to server-side events and properties. See [[RBX.lua.HopperBin (Object)|Hopperbins]] for the exception. | ||
A Script runs when placed as a [[IsDescendantOf (Function)|Descendant]] of any of the following (and not Disabled): | |||
* [[Workspace]] | |||
* [[Backpack]] | |||
* [[RBX.lua.PlayerGui (Object)|PlayerGui]] | |||
Note: Changing the value of Disabled will have no effect unless script parent is subsequently changed. | |||
==Functions== | ==Functions== |
Revision as of 02:48, 25 April 2010
A Script in Roblox is a type of object that hold a section of Lua code. A script will execute on server and has access only to server-side events and properties. See Hopperbins for the exception.
A Script runs when placed as a Descendant of any of the following (and not Disabled):
Note: Changing the value of Disabled will have no effect unless script parent is subsequently changed.
Functions
The Script object only incorporates the global functions.
Properties
In addition to the Global properties, the Script also has these:
Events
The Script object only incorporates the global events.