RBX.lua.Script (Object): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>Zyuka |
>Zyuka |
||
Line 2: | Line 2: | ||
==Functions== | ==Functions== | ||
The Script object only incorporates the global functions. <br><br>Here is an example:<br><pre>--This script will tilt and/or rotate a certain brick.<br>game.Workspace.MyBrick.CFrame = CFrame.fromEulerAngles(1,0,0) | The Script object only incorporates the global functions. <br><br>Here is an example:<br><pre>--This script will tilt and/or rotate a certain brick.<br>game.Workspace.MyBrick.CFrame = CFrame.fromEulerAngles(1,0,0) | ||
--this tilts the brick 45 degrees up and down. Change MyBrick to the name of the brick in question.</pre> | |||
==Properties== | ==Properties== |
Revision as of 05:04, 11 November 2007
A Script in Roblox is a type of object that hold a section of Lua code. This script can be used in many, many ways and is very versatile in applications.
Functions
The Script object only incorporates the global functions.
Here is an example:
--This script will tilt and/or rotate a certain brick.<br>game.Workspace.MyBrick.CFrame = CFrame.fromEulerAngles(1,0,0) --this tilts the brick 45 degrees up and down. Change MyBrick to the name of the brick in question.
Properties
In addition to the Global properties, the Script also has these:
Events
The Script object only incorporates the global events.