Skip to main content

Globals

Global are the functions or properties that you can use inside of any script.

Lua globals available inside of Polytoria can be found at the Engine API Reference under the Libraries table

All Polytoria globals are found here. To use one just use the keyword of the global you want inside of any script.

Instance is also a global.

For example you can use the Instance global to create a new part inside of your game:

local Environment = game["Environment"]

local part = Instance.New("Part") -- Using the instance global
part.Parent = Environment
-- OR
local part = Instance.New("Part",Environment)