Roblox globals
Roblox provides several unique built-in functions and variables in its embedding of Luau. These are only found on Roblox and are not packaged by default with Luau or Lua.
Summary
Functions
Returns the amount of time in seconds that the current instance of Roblox has been running for.
Refers to the PluginManager, a deprecated singleton that was previously required to create plugins.
Returns the GlobalSettings object, which can be used to access settings objects that configure Roblox Studio's behavior.
Returns the amount of time in seconds since the Unix epoch according to this device's time.
Returns the amount of time in seconds that has elapsed since the current game instance started running.
Returns the type of the given object as a string, also supporting Roblox-specific types (e.g. Vector3).
Returns the UserSettings object, which is used to read information from the current user's game menu settings.
Returns the current version of Roblox as a string, which includes the generation, version, patch and commit.
Behaves similarly to print, except with more distinct formatting (yellow); intended for messages which describe potential problems.
Properties
Contains all Enum objects.
Refers to the DataModel singleton, the root instance of a place's hierarchy.
Refers to a Plugin singleton when the code is run in the context of a Studio plugin.
A table shared between all code running at the same execution context level.
A reference to the LuaSourceContainer object (Script, LocalScript, or ModuleScript) that is executing this code.
A reference to the Workspace service, which contains all of the physical components of a place.