Glorpia Docs
Scripting

Glorpia Luau

Functions, datatypes and object APIs exposed to Glorpia creator scripts.

Public scripting

Glorpia executes creator-authored ServerScripts on the authoritative server and creator-authored LocalScripts on each client. RemoteEvent and RemoteFunction connect the two public scripting contexts while keeping client-only and server-only APIs separated.

CoreScript and CoreLocalScript remain privileged engine-owned classes. Public ServerScripts and LocalScripts use restricted side-specific creator permissions.

Script editor

ServerScripts and LocalScripts open as editable tabs beside the place tab. The public editor uses the same Glorpia Luau syntax colours and layout as the read-only CoreScript viewer.

The editor autocomplete includes globals, services, properties, methods, signals, enums and known hierarchy children. Callable completions show and insert parentheses. String-first calls such as game:GetService(), FindFirstChild(), FindFirstChildOfClass(), FindFirstChildWhichIsA(), WaitForChild() and IsA() insert ("") and place the caret between the quotes. Typing a raw ( also inserts the matching ) with the caret left inside the pair.

Glorpia Studio script editor showing Luau source with syntax highlighting
The Studio script editor uses the same syntax-colour design for public and core scripts.

Runtime information

The global Glorpia table exposes engine identity, client/server state, Offline Mode state, memory information and current player FPS reports.

Luau
print(Glorpia.EngineName)
print(Glorpia.EngineVersion)
print(Glorpia.IsServer)
print(Glorpia.IsClient)
print(Glorpia.IsOfflineMode)
print(Glorpia.EngineMemoryUsage)

for player, fps in pairs(Glorpia.GetFramesPerSecond()) do
    print(player.Name, player.Platform, fps)
end

A first script

This example creates a Part, changes some of its BasePart properties, and parents it into Workspace so it appears in the world.

Luau
local part = Instance.new("Part")
part.Name = "ExamplePart"
part.Size = Vector3.new(4, 1, 4)
part.Shape = Enum.PartShape.Cylinder
part.Bevel = 0.35
part.Colour3 = Colour3.fromRGB(88, 255, 106)
part.Parent = workspace

Common functions and methods

Instance access

Normal instances support hierarchy methods such as FindFirstChild(), WaitForChild(), FindFirstChildOfClass(), FindFirstChildWhichIsA(), Clone(), GetChildren() and GetDescendants(). Direct child-name indexing is also supported, so character.Humanoid can resolve a direct child named Humanoid.

BasePart colour accepts Color, Colour, Color3 and Colour3 as equivalent read/write aliases. Vector and colour constructors accept numeric variables in their component arguments.

Where to go next