RBX.lua.Script (Object)

From Legacy Roblox Wiki
Revision as of 05:03, 11 November 2007 by >Zyuka (→‎Functions)
Jump to navigationJump to search

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.