Roblox uses Lua 5.1, a simple scripting language that can be embedded into games or programs (parent applications). Roblox developers have added in functionality to Lua so that users can create interactive content, like tools, buttons, leaderboards, and more in their places. The following links will give you an overview on the language.

A library is a group of functions that can be used to make scripting easier. For security purposes, some functions have been removed from Roblox to prevent access to system resources. Roblox loads the coroutine, string, table, math, and basic function libraries.

Roblox defines the following global variables along with many others. See the Function Dump page for a list of global functions and read on for a list of global objects. Users can create their own Global Functions for use in individual games by making use of the global table.

Game or game is a reference to the DataModel instance that is the root of the object hierarchy.

Workspace or workspace is a shortcut for the Workspace instance that is a child of the DataModel.

script is a reference to the Script instance that is the owner of the referencing code. (Not applicable to Command Bar or plugins.)

Objects are what make Roblox work. Everything seen in-game is an object, as well as everything visible in the Explorer panel. All Objects have properties, methods and events. For information about certain objects, search the wiki for the specific object or go to the Class Reference page. Additionally, you can use the Object Browser for a more complete list of objects.

The slightest misspelling, or even incorrect capitalization will result in your script failing to work. Remember: Look at the output to check for errors. If this doesn't help, back-track and make sure everything is perfect. If you think there is a problem, or you need help in general, request help on the forum.