# Glorpia Documentation - Full Corpus > Auto-generated from the same documentation page sources used by https://docs.glorpia.com/. Do not edit this file by hand. Generated pages: 99 --- Source: https://docs.glorpia.com/ Markdown: https://docs.glorpia.com/index.md --- title: "Glorpia Studio" description: "Documentation for Glorpia Studio and Glorpia Luau." canonical: "https://docs.glorpia.com/" markdown: "https://docs.glorpia.com/index.md" --- # Glorpia Studio Documentation for Glorpia Studio and Glorpia Luau. **Category:** Glorpia Documentation - [**Studio** Learn the editor, offline mode, transform tools, and Client/Server playtesting.](https://docs.glorpia.com/studio/getting-started.md) - [**Scripting** Learn Luau basics, functions, methods, datatypes and signals.](https://docs.glorpia.com/scripting.md) - [**Instances** Reference BasePart, Part, Model, Humanoid, BasicSound, ServerScript and more.](https://docs.glorpia.com/instances.md) - [**Services** Reference Workspace, storage services, Lighting, RunService, Players, TweenService and more.](https://docs.glorpia.com/services.md) ## How the reference is organised **Studio** covers editing, freecam controls, playtesting, the Client/Server view split, live server editing and publishing. **Scripting** explains language-facing functions and common patterns. **Instances** documents objects in the Glorpia hierarchy. **Services** documents engine-wide objects used to access systems such as rendering, input and players. --- Source: https://docs.glorpia.com/api-reference Markdown: https://docs.glorpia.com/api-reference.md --- title: "API Reference" description: "Reference pages for Glorpia globals, classes, services, functions and data types." canonical: "https://docs.glorpia.com/api-reference" markdown: "https://docs.glorpia.com/api-reference.md" --- # API Reference Reference pages for Glorpia globals, classes, services, functions and data types. **Category:** API Reference ## Browse the API - [Globals](https://docs.glorpia.com/scripting/glorpia.md) — Runtime globals and entry points such as Glorpia, game, Instance.new(), math, task and workspace. - [Classes](https://docs.glorpia.com/instances.md) — Dedicated pages for hierarchy classes, including Instance, Part, Model, Player, scripts and each ValueBase class. - [Services](https://docs.glorpia.com/services.md) — Engine services including Workspace, Players, RunService, TweenService, DebrisService and UserInputService. - [Functions](https://docs.glorpia.com/scripting/functions/instance-new.md) — Instance, hierarchy, character, physics and signal functions exposed to scripts. - [Data Types](https://docs.glorpia.com/scripting/datatypes.md) — Vector2, Vector3, CFrame, Color3 / Colour3, ColourSequence and NumberSequence values used by the runtime. - [Enums and Input](https://docs.glorpia.com/scripting/enums.md) — Enum values and supported keyboard, mouse and input types. --- Source: https://docs.glorpia.com/instances Markdown: https://docs.glorpia.com/instances.md --- title: "Instances" description: "Objects that can appear in the Glorpia hierarchy or be exposed by runtime systems." canonical: "https://docs.glorpia.com/instances" markdown: "https://docs.glorpia.com/instances.md" --- # Instances Objects that can appear in the Glorpia hierarchy or be exposed by runtime systems. **Category:** Instances ## World instances - [Instance](https://docs.glorpia.com/instances/instance.md) — Base hierarchy properties and methods shared by Glorpia classes. - [BasePart](https://docs.glorpia.com/instances/basepart.md) — Shared transform, rendering, physics and Touched behavior for Part-like objects. - [Part](https://docs.glorpia.com/instances/part.md) — The general-purpose physical building block. - [SpawnLocation](https://docs.glorpia.com/instances/spawnlocation.md) — A BasePart used as the character spawn point. - [Model](https://docs.glorpia.com/instances/model.md) — Groups instances and controls descendant pivots, visibility and collision. - [Folder](https://docs.glorpia.com/instances/folder.md) — Organises instances and descendant visibility/collision. - [Humanoid](https://docs.glorpia.com/instances/humanoid.md) — Character health, movement and jumping state. - [Player](https://docs.glorpia.com/instances/player.md) — Represents a player and exposes PlayerID, Character, Platform and FramesPerSecond. - [Camera](https://docs.glorpia.com/instances/camera.md) — The current view transform and field of view. - [BasicSound](https://docs.glorpia.com/instances/basicsound.md) — Global or BasePart-emitted sound. - [ScreenGui](https://docs.glorpia.com/instances/screengui.md) — 2D interface container rendered from PlayerGui and previewed from StarterGui. - [SurfaceGui](https://docs.glorpia.com/instances/surfacegui.md) — GUI container rendered on a selected face of a world part. - [BillboardGui](https://docs.glorpia.com/instances/billboardgui.md) — World-space GUI container parented to a BasePart. - [Frame](https://docs.glorpia.com/instances/frame.md) — Rectangular GUI container and background. - [ScrollingFrame](https://docs.glorpia.com/instances/scrollingframe.md) — Scrollable GUI container with a larger canvas. - [UIListLayout](https://docs.glorpia.com/instances/uilistlayout.md) — Automatically arranges sibling GUI objects in a list. - [UIGridLayout](https://docs.glorpia.com/instances/uigridlayout.md) — Automatically arranges sibling GUI objects into grid cells. - [TextLabel](https://docs.glorpia.com/instances/textlabel.md) — Text GUI object with selectable font families and styles. - [TextButton](https://docs.glorpia.com/instances/textbutton.md) — Clickable text GUI object with client input signals. - [UICorner](https://docs.glorpia.com/instances/uicorner.md) — Rounds GUI object backgrounds. - [UIGradient](https://docs.glorpia.com/instances/uigradient.md) — Applies a two-endpoint colour and transparency gradient. - [UIBlur](https://docs.glorpia.com/instances/uiblur.md) — Blurs the rendered 3D backdrop behind a GUI object. - [BlurEffect](https://docs.glorpia.com/instances/blureffect.md) — Lighting post-effect that blurs the rendered 3D world without blurring UI. - [ColourCorrection](https://docs.glorpia.com/instances/colourcorrection.md) — Lighting post-effect for brightness, contrast, saturation and tint. - [PlayerGui](https://docs.glorpia.com/instances/playergui.md) — Runtime player GUI container cloned from StarterGui. - [PlayerScripts](https://docs.glorpia.com/instances/playerscripts.md) — Runtime LocalScript container cloned from StarterPlayerScripts. - [StarterPlayerScripts](https://docs.glorpia.com/instances/starterplayerscripts.md) — Template LocalScripts cloned into each player's PlayerScripts. - [StarterCharacterScripts](https://docs.glorpia.com/instances/startercharacterscripts.md) — Template LocalScripts cloned into each spawned character. - [RemoteEvent](https://docs.glorpia.com/instances/remoteevent.md) — One-way messages between LocalScripts and ServerScripts. - [RemoteFunction](https://docs.glorpia.com/instances/remotefunction.md) — Client/server requests that return values. - [ValueBase](https://docs.glorpia.com/instances/valuebase.md) — Base class for hierarchy value objects. - [Value Classes](https://docs.glorpia.com/instances/values.md) — Browse BoolValue, IntValue, ObjectValue, Vector3Value and the other concrete value classes. - [ServerScript](https://docs.glorpia.com/instances/serverscript.md) — Public creator-authored Luau that executes on the authoritative server. - [LocalScript](https://docs.glorpia.com/instances/localscript.md) — Public creator-authored Luau that executes on the client. - [CoreScript](https://docs.glorpia.com/instances/corescript.md) — Privileged engine-only core script class. - [CoreLocalScript](https://docs.glorpia.com/instances/corelocalscript.md) — Privileged engine-only local core script class. ## Base classes Shared hierarchy behavior is documented on the dedicated `Instance` class page. Part-like classes inherit from `BasePart`, and concrete value classes inherit from `ValueBase`. - [Instance](https://docs.glorpia.com/instances/instance.md) — Shared hierarchy properties and methods. - [BasePart](https://docs.glorpia.com/instances/basepart.md) — Shared physical and rendered part behavior. - [ValueBase](https://docs.glorpia.com/instances/valuebase.md) — Shared value-storage behavior. > **Note:** `BasePart` is the class family used by `Part` and `SpawnLocation`. ## Public and core scripts `ServerScript` uses the public authoritative server permission set. `LocalScript` uses the public client permission set. `CoreScript` and `CoreLocalScript` are Glorpia-owned and keep privileged engine permissions. - [Public Scripts](https://docs.glorpia.com/scripting/public-scripts.md) — Execution, client/server permissions and remote communication. - [ServerScript](https://docs.glorpia.com/instances/serverscript.md) — Server-side execution behavior. - [LocalScript](https://docs.glorpia.com/instances/localscript.md) — Client-side execution behavior. --- Source: https://docs.glorpia.com/instances/basepart Markdown: https://docs.glorpia.com/instances/basepart.md --- title: "BasePart" description: "Shared properties, pivot methods and contact events of Part and SpawnLocation." canonical: "https://docs.glorpia.com/instances/basepart" markdown: "https://docs.glorpia.com/instances/basepart.md" --- # BasePart Shared properties, pivot methods and contact events of Part and SpawnLocation. **Category:** Instances / Base class ## Properties | Name | Type | Description | | --- | --- | --- | | `Position` | Vector3 | Read/write world-space position. | | `Orientation` | Vector3 | Read/write XYZ rotation in degrees. This is the script-facing form of Studio's Orientation row under CFrame. | | `Size` | Vector3 | Read/write dimensions. Every component must be greater than zero. | | `CFrame` | CFrame | Read/write world-space position and rotation together. | | `Shape` | Enum.PartShape | Block, Ball, Cylinder, Wedge or CornerWedge. | | `Bevel` | number | Read/write edge rounding from 0 to 1. | | `ShadeSmooth` | boolean | Read/write smooth shading on generated curved geometry. | | `Detail` | integer | Read/write generated mesh detail from 1 through 16. MeshDetail is a compatibility alias. | | `Vertices` | integer | Read-only generated vertex count shown by Studio's Properties panel. | | `Triangles` | integer | Read-only generated triangle count shown by Studio's Properties panel. | | `Color / Colour / Color3 / Colour3` | Color3 / Colour3 | Equivalent read/write aliases for the part colour. | | `Transparency` | number | Read/write transparency from 0 to 1. | | `Anchored` | boolean | When true, physics does not move the part. | | `CanCollide` | boolean | Controls whether the part participates in collisions. | ## Methods | Name | Type | Description | | --- | --- | --- | | `GetPivot()` | CFrame | Returns the BasePart's current CFrame. | | `PivotTo(cframe)` | method | Sets the BasePart's world-space position and rotation to the target CFrame. | | `FindFirstChild(name, recursive?)` | method | Finds a child or descendant by name. | | `FindFirstChildOfClass(className)` | method | Finds the first direct child with the exact class name. | | `GetChildren()` | table | Returns direct children. | | `GetDescendants()` | table | Returns all descendants. | | `IsA(className)` | boolean | Checks Part/SpawnLocation, BasePart, or Instance as supported. | | `GetFullName()` | string | Returns the dotted hierarchy name. | | `Destroy()` | method | Removes the instance and its children. | ## Events | Name | Type | Description | | --- | --- | --- | | `Touched` | signal | Fires when a new Workspace contact begins and passes the other BasePart. ServerScripts use the authoritative world; LocalScripts use that client's replicated/local world. | ```luau script.Parent.Touched:Connect(function(hit) print(hit:GetFullName()) end) ``` - [BasePart.Touched](https://docs.glorpia.com/scripting/events/touched.md) — Detailed contact behavior, callback arguments and examples. ## Example: Make A Rounded Cylinder ```luau local part = workspace:FindFirstChild("Part") if part and part:IsA("BasePart") then part.Shape = Enum.PartShape.Cylinder part.Bevel = 0.4 part.ShadeSmooth = true part.Detail = 8 print(part.Vertices, part.Triangles) end ``` > **Note:** `IsA("BasePart")` returns true for both `Part` and `SpawnLocation`. ## Concrete classes - [Part](https://docs.glorpia.com/instances/part.md) — General-purpose BasePart. - [SpawnLocation](https://docs.glorpia.com/instances/spawnlocation.md) — BasePart used for character spawning. --- Source: https://docs.glorpia.com/instances/basicsound Markdown: https://docs.glorpia.com/instances/basicsound.md --- title: "BasicSound" description: "A built-in sound instance that can play globally or emit spatially from a BasePart." canonical: "https://docs.glorpia.com/instances/basicsound" markdown: "https://docs.glorpia.com/instances/basicsound.md" --- # BasicSound A built-in sound instance that can play globally or emit spatially from a BasePart. **Category:** Instances ## Properties | Name | Type | Description | | --- | --- | --- | | `Sound` | Enum.BasicSound.SoundName | Built-in sound selection. Use values such as Enum.BasicSound.MonkeyParty rather than a string. | | `Volume` | number | Playback volume from 0 through 4. | | `Looped` | boolean | When true, the sound repeats continuously while Playing is true. | | `Playing` | boolean | Controls whether playback is active. | | `RolloffMaxDistance` | number | Maximum spatial hearing distance in studs. Spatial sounds begin fading immediately with distance and reach silence at this distance. | ## Built-in sounds | Name | Type | Description | | --- | --- | --- | | `Enum.BasicSound.BubblePop` | BubblePop | Original built-in BubblePop sound. | | `Enum.BasicSound.MonkeyParty` | Monkey Party | Built-in Monkey Party track. | | `Enum.BasicSound.AquaFrenzy` | Aqua Frenzy | Built-in Aqua Frenzy track. | | `Enum.BasicSound.PartyMusic` | Party Music | Built-in Party Music track. | | `Enum.BasicSound.Chiptronical` | Chiptronical | Built-in Chiptronical track. | | `Enum.BasicSound.ZeroProject` | Zero Project | Built-in Zero Project track. | | `Enum.BasicSound.JingleBells` | Jingle Bells | Built-in Jingle Bells track. | | `Enum.BasicSound.SantaMagic` | Santa Magic | Built-in Santa Magic track. | | `Enum.BasicSound.SpookyGames` | Spooky Games | Built-in Spooky Games track. | | `Enum.BasicSound.MysticalHalloween` | Mystical Halloween | Built-in Mystical Halloween track. | | `Enum.BasicSound.HalloweenSpook` | Halloween Spook | Built-in Halloween Spook track. | | `Enum.BasicSound.HolidaySpirit` | Holiday Spirit | Built-in Holiday Spirit track. | | `Enum.BasicSound.MorningMood` | Morning Mood | Additional BasicSound preset name. | | `Enum.BasicSound.GymnopedieNo1` | Gymnopédie No. 1 | Additional BasicSound preset name. | | `Enum.BasicSound.Lacrimosa` | Lacrimosa | Additional BasicSound preset name. | | `Enum.BasicSound.Hallelujah` | Hallelujah | Additional BasicSound preset name. | | `Enum.BasicSound.HallOfTheMountainKing` | Hall of the Mountain King | Additional BasicSound preset name. | | `Enum.BasicSound.TheEntertainer` | The Entertainer | Additional BasicSound preset name. | | `Enum.BasicSound.Invincible` | Invincible | Additional BasicSound preset name. | | `Enum.BasicSound.CurbYourEnthusiasm` | Curb Your Enthusiasm | Additional BasicSound preset name. | | `Enum.BasicSound.EntryOfTheGladiators` | Entry of the Gladiators | Additional BasicSound preset name. | | `Enum.BasicSound.DistractionDance` | Distraction Dance | Additional BasicSound preset name. | | `Enum.BasicSound.YouGotJebaited` | You Got Jebaited | Additional BasicSound preset name. | > **Note:** `Sound` uses `Enum.BasicSound.SoundName` values. For example: `Enum.BasicSound.AquaFrenzy`. > **Note:** BasicSound presets are built into Glorpia. No external audio folder or runtime sound file is required. ## Methods | Name | Type | Description | | --- | --- | --- | | `Play()` | method | Sets Playing to true. | | `Pause()` | method | Sets Playing to false. | | `Stop()` | method | Sets Playing to false and uses the same playback-state behavior as Pause(). | ## Spatial and global playback | Name | Type | Description | | --- | --- | --- | | `Under a BasePart` | spatial | The nearest BasePart ancestor is the 3D emitter. Horizontal direction follows the emitter's camera-relative screen position, transitions smoothly between ears, and keeps some signal in the opposite ear. Distance attenuation begins immediately. | | `Workspace / no BasePart ancestor` | global | Plays evenly in both channels. Camera direction, listener distance and RolloffMaxDistance do not spatialize the sound. | A BasicSound may be directly parented to a Part or placed inside a Folder or Model beneath that Part. Glorpia walks upward to the nearest BasePart and uses its world position as the emitter. Spatial sounds fade continuously with distance. `RolloffMaxDistance` is the distance where the sound becomes silent. > **Note:** BasicSound does not preview in Studio Edit mode. Playback is active during Play and in the Glorpia App/runtime. ## Example: spatial sound in a Part ```luau local sound = Instance.new("BasicSound") sound.Sound = Enum.BasicSound.MonkeyParty sound.Volume = 1 sound.Looped = true sound.RolloffMaxDistance = 100 sound.Parent = script.Parent sound:Play() ``` > **Note:** This is spatial when `script.Parent` is a BasePart. ## Example: global Workspace sound ```luau local music = Instance.new("BasicSound") music.Sound = Enum.BasicSound.AquaFrenzy music.Volume = 0.5 music.Looped = true music.Parent = workspace music:Play() ``` Because the sound has no BasePart ancestor, every listener hears it as centred non-spatial audio. ## Replication BasicSound is authoritative runtime state. Changes made by a ServerScript or through supported Studio Server-view live editing replicate to clients, and clients play the replicated sound state. ## Related - [Public Scripts](https://docs.glorpia.com/scripting/public-scripts.md) — Control BasicSound from creator Luau. - [Enums](https://docs.glorpia.com/scripting/enums.md) — BasicSound sound-name values and other scripting enums. - [BasePart](https://docs.glorpia.com/instances/basepart.md) — The spatial emitter used when a sound lives under a part. - [Workspace](https://docs.glorpia.com/services/workspace.md) — Global non-spatial sounds can be parented directly to Workspace. --- Source: https://docs.glorpia.com/instances/billboardgui Markdown: https://docs.glorpia.com/instances/billboardgui.md --- title: "BillboardGui" description: "A world-space GUI container parented directly to a BasePart." canonical: "https://docs.glorpia.com/instances/billboardgui" markdown: "https://docs.glorpia.com/instances/billboardgui.md" --- # BillboardGui A world-space GUI container parented directly to a BasePart. **Category:** Instances ## Properties | Name | Type | Description | | --- | --- | --- | | `Size` | UDim2 | Canvas size. The default is UDim2.new(0, 200, 0, 100). | | `StudsOffset` | Vector3 | World-space offset from the parent BasePart. The default is Vector3.zero. | | `ClipDescendants` | boolean | Clips child GUI objects to the BillboardGui canvas. Default: false. | | `Enabled` | boolean | Controls whether the BillboardGui and all of its descendants are rendered. Default: true. | | `AlwaysOnTop` | boolean | When false, world geometry can occlude the BillboardGui. When true, it is drawn above world geometry. Default: false. | | `MaxDistance` | number | Maximum camera distance at which the BillboardGui renders. Default: inf (unlimited). | ## Hierarchy Hierarchy parenting is unrestricted. A BillboardGui renders only while directly parented to a `Part` or `SpawnLocation` in Workspace. Invalid placements remain in the hierarchy but do not render. > **Note:** BillboardGui is a world GUI. Its child GUI objects use UDim2 coordinates inside the BillboardGui canvas. Frame, TextLabel and TextButton visuals use the shared Skia 2D renderer for backgrounds, rounded corners, UIGradient and text. UIBlur can blur the local 3D backdrop behind a child GUI object. BillboardGui follows the same AlwaysOnTop rendering rule as SurfaceGui. With AlwaysOnTop set to false it depth-tests against world geometry and participates in 3D BlurEffect/ColourCorrection. With AlwaysOnTop set to true it is composited afterward and bypasses those post effects, while still remaining below ScreenGui. Set MaxDistance to `inf` for unlimited range. ## Example ```luau local gui = Instance.new("BillboardGui") gui.Size = UDim2.new(0, 200, 0, 100) gui.StudsOffset = Vector3.new(0, 3, 0) gui.ClipDescendants = false gui.Enabled = true gui.AlwaysOnTop = false gui.MaxDistance = inf gui.Parent = workspace.Part local label = Instance.new("TextLabel") label.Text = "Hello Glorpia" label.Font = Enum.Font.Metropolis label.FontStyle = Enum.FontStyle.Bold label.Parent = gui ``` ## Copying and cloning `Clone()`, Studio Duplicate, Copy and Paste preserve the complete BillboardGui descendant hierarchy and all GUI properties. ## Related - [Frame](https://docs.glorpia.com/instances/frame.md) — Rectangular GUI container. - [TextLabel](https://docs.glorpia.com/instances/textlabel.md) — Displays text inside a GUI. - [TextButton](https://docs.glorpia.com/instances/textbutton.md) — Clickable text GUI object. - [UDim / UDim2](https://docs.glorpia.com/scripting/datatypes.md) — GUI scale and offset values. --- Source: https://docs.glorpia.com/instances/binarystringvalue Markdown: https://docs.glorpia.com/instances/binarystringvalue.md --- title: "BinaryStringValue" description: "Stores binary/string-like data through Luau strings." canonical: "https://docs.glorpia.com/instances/binarystringvalue" markdown: "https://docs.glorpia.com/instances/binarystringvalue.md" --- # BinaryStringValue Stores binary/string-like data through Luau strings. **Category:** Instances / ValueBase ## Inheritance `BinaryStringValue` is a `ValueBase` class and inherits the shared hierarchy API from `Instance`. ## Members | Name | Type | Description | | --- | --- | --- | | `Value` | string | The value stored by this instance. | | `Changed` | signal | Fires when Value changes and passes the new value. | ## Example ```luau local value = Instance.new("BinaryStringValue") value.Name = "ExampleValue" value.Value = "Hello" value.Parent = workspace value.Changed:Connect(function(newValue) print(newValue) end) ``` ## Related - [ValueBase](https://docs.glorpia.com/instances/valuebase.md) — Shared Value and Changed members for value classes. - [Instances](https://docs.glorpia.com/instances.md) — Browse the complete Glorpia class reference. --- Source: https://docs.glorpia.com/instances/blureffect Markdown: https://docs.glorpia.com/instances/blureffect.md --- title: "BlurEffect" description: "Applies a full-resolution Gaussian blur to the 3D scene." canonical: "https://docs.glorpia.com/instances/blureffect" markdown: "https://docs.glorpia.com/instances/blureffect.md" --- # BlurEffect Applies a full-resolution Gaussian blur to the 3D scene. **Category:** Instances ## Properties | Name | Type | Description | | --- | --- | --- | | `Enabled` | boolean | Controls whether this blur contributes to Lighting post-processing. Default: true. | | `Size` | number | Blur amount from 0 through 256. Default: 24. | ## Hierarchy BlurEffect is active when directly parented to `Lighting`. Parenting elsewhere is allowed, but the effect remains inactive. > **Note:** BlurEffect uses repeated full-resolution separable Gaussian passes with preview-bounded edge sampling. BillboardGui and SurfaceGui with `AlwaysOnTop = false` are part of the depth-tested 3D scene and are blurred; with `AlwaysOnTop = true` they are composited afterward and bypass post-processing. ScreenGui is also composited afterward. ## Example ```luau local Lighting = game:GetService("Lighting") local blur = Instance.new("BlurEffect") blur.Size = 18 blur.Parent = Lighting ``` ## Related - [Lighting](https://docs.glorpia.com/services/lighting.md) — Scene lighting and post-processing container. - [ColourCorrection](https://docs.glorpia.com/instances/colourcorrection.md) — Brightness, contrast, saturation and tint post-processing. --- Source: https://docs.glorpia.com/instances/boolvalue Markdown: https://docs.glorpia.com/instances/boolvalue.md --- title: "BoolValue" description: "Stores true or false." canonical: "https://docs.glorpia.com/instances/boolvalue" markdown: "https://docs.glorpia.com/instances/boolvalue.md" --- # BoolValue Stores true or false. **Category:** Instances / ValueBase ## Inheritance `BoolValue` is a `ValueBase` class and inherits the shared hierarchy API from `Instance`. ## Members | Name | Type | Description | | --- | --- | --- | | `Value` | boolean | The value stored by this instance. | | `Changed` | signal | Fires when Value changes and passes the new value. | ## Example ```luau local value = Instance.new("BoolValue") value.Name = "ExampleValue" value.Value = true value.Parent = workspace value.Changed:Connect(function(newValue) print(newValue) end) ``` ## Related - [ValueBase](https://docs.glorpia.com/instances/valuebase.md) — Shared Value and Changed members for value classes. - [Instances](https://docs.glorpia.com/instances.md) — Browse the complete Glorpia class reference. --- Source: https://docs.glorpia.com/instances/camera Markdown: https://docs.glorpia.com/instances/camera.md --- title: "Camera" description: "Represents the active view and the protected Camera hierarchy node under Workspace." canonical: "https://docs.glorpia.com/instances/camera" markdown: "https://docs.glorpia.com/instances/camera.md" --- # Camera Represents the active view and the protected Camera hierarchy node under Workspace. **Category:** Instances ## Access `workspace.CurrentCamera` exposes the active view's transform and field of view to LocalScripts and CoreScripts. The Camera row in the Workspace hierarchy can also own child Instances. ## Properties | Name | Type | Description | | --- | --- | --- | | `Position` | Vector3 | Read/write camera world-space position. | | `Orientation` | Vector3 | Read/write XYZ camera rotation in degrees. | | `CFrame` | CFrame | Read/write the camera position and rotation together. | | `FieldOfView` | number | Read/write vertical field of view in degrees. Values are clamped from 1 to 120. | | `CameraMode` | Enum.CameraMode | Controls the built-in camera mode. Classic uses normal zoom behaviour. LockFirstPerson keeps the built-in camera in first person. | | `CameraType` | Enum.CameraType | Controls whether the Core CameraScript drives the Camera. Custom is the default built-in behaviour. Scriptable disables built-in camera control so creator LocalScripts own the Camera and camera input behaviour. | | `Name` | string | Camera. | | `ClassName` | string | Camera. | ## Camera Control `CameraType = Enum.CameraType.Custom` is the default. The Core CameraScript updates the Camera each frame using Glorpia's normal third-person and first-person controls. `CameraType = Enum.CameraType.Scriptable` stops the Core CameraScript from changing the Camera transform or field of view and stops its built-in zoom/freecam input handling. Creator LocalScripts can then control the Camera and camera input directly. `CameraMode = Enum.CameraMode.LockFirstPerson` keeps the built-in Custom camera in first person. Switching back to `Classic` restores normal zoom behaviour. ## Children Instances may be parented beneath Camera. Because Camera itself is a Workspace child, Parts anywhere below it remain Workspace descendants and are therefore rendered and included in world physics. ## Example: Point The Camera At The Origin ```luau local camera = workspace.CurrentCamera local position = Vector3.new(12, 10, 12) camera.CFrame = CFrame.lookAt( position, Vector3.zero ) camera.FieldOfView = 70 ``` ## Example: Scriptable Camera ```luau local camera = workspace.CurrentCamera camera.CameraType = Enum.CameraType.Scriptable camera.CFrame = CFrame.lookAt( Vector3.new(0, 20, 30), Vector3.zero ) camera.FieldOfView = 55 ``` --- Source: https://docs.glorpia.com/instances/cframevalue Markdown: https://docs.glorpia.com/instances/cframevalue.md --- title: "CFrameValue" description: "Stores a position and rotation." canonical: "https://docs.glorpia.com/instances/cframevalue" markdown: "https://docs.glorpia.com/instances/cframevalue.md" --- # CFrameValue Stores a position and rotation. **Category:** Instances / ValueBase ## Inheritance `CFrameValue` is a `ValueBase` class and inherits the shared hierarchy API from `Instance`. ## Members | Name | Type | Description | | --- | --- | --- | | `Value` | CFrame | The value stored by this instance. | | `Changed` | signal | Fires when Value changes and passes the new value. | ## Example ```luau local value = Instance.new("CFrameValue") value.Name = "ExampleValue" value.Value = CFrame.new(0, 5, 0) value.Parent = workspace value.Changed:Connect(function(newValue) print(newValue) end) ``` ## Related - [ValueBase](https://docs.glorpia.com/instances/valuebase.md) — Shared Value and Changed members for value classes. - [Instances](https://docs.glorpia.com/instances.md) — Browse the complete Glorpia class reference. --- Source: https://docs.glorpia.com/instances/colour3value Markdown: https://docs.glorpia.com/instances/colour3value.md --- title: "Colour3Value" description: "Stores an RGB colour." canonical: "https://docs.glorpia.com/instances/colour3value" markdown: "https://docs.glorpia.com/instances/colour3value.md" --- # Colour3Value Stores an RGB colour. **Category:** Instances / ValueBase ## Inheritance `Colour3Value` is a `ValueBase` class and inherits the shared hierarchy API from `Instance`. ## Members | Name | Type | Description | | --- | --- | --- | | `Value` | Colour3 | The value stored by this instance. | | `Changed` | signal | Fires when Value changes and passes the new value. | ## Example ```luau local value = Instance.new("Colour3Value") value.Name = "ExampleValue" value.Value = Colour3.fromRGB(80, 140, 255) value.Parent = workspace value.Changed:Connect(function(newValue) print(newValue) end) ``` ## Canadian and American spelling Glorpia uses Canadian spelling in Studio and documentation, so `Colour3Value` is the displayed class name. For compatibility, `Instance.new("Color3Value")`, `IsA("Color3Value")` and older places that contain `Color3Value` continue to work and are normalised to `Colour3Value`. ## Related - [ValueBase](https://docs.glorpia.com/instances/valuebase.md) — Shared Value and Changed members for value classes. - [Instances](https://docs.glorpia.com/instances.md) — Browse the complete Glorpia class reference. --- Source: https://docs.glorpia.com/instances/colourcorrection Markdown: https://docs.glorpia.com/instances/colourcorrection.md --- title: "ColourCorrection" description: "Adjusts world brightness, contrast, saturation and tint through Lighting post-processing." canonical: "https://docs.glorpia.com/instances/colourcorrection" markdown: "https://docs.glorpia.com/instances/colourcorrection.md" --- # ColourCorrection Adjusts world brightness, contrast, saturation and tint through Lighting post-processing. **Category:** Instances ## Naming `ColourCorrection` is the canonical Glorpia class name. `ColorCorrection`, `ColourCorrectionEffect` and `ColorCorrectionEffect` are accepted creation/loading aliases. ## Properties | Name | Type | Description | | --- | --- | --- | | `Enabled` | boolean | Controls whether the correction is applied. Default: true. | | `Brightness` | number | Brightness adjustment from -1 through 1. Default: 0. | | `Contrast` | number | Contrast adjustment from -1 through 1. Default: 0. | | `Saturation` | number | Saturation adjustment from -1 through 1. Default: 0. | | `TintColour3` | Colour3 | Colour multiplier. Default: white. TintColor3 is the American-spelling alias. | ## Hierarchy ColourCorrection is active when directly parented to `Lighting`. Parenting elsewhere is allowed, but it remains inactive. > **Note:** Colour correction affects the rendered 3D world. GUI is composited afterward and keeps its original colours. ## Example ```luau local Lighting = game:GetService("Lighting") local correction = Instance.new("ColourCorrection") correction.Contrast = 0.15 correction.Saturation = -0.2 correction.TintColour3 = Colour3.fromRGB(255, 235, 220) correction.Parent = Lighting ``` ## Related - [Lighting](https://docs.glorpia.com/services/lighting.md) — Scene lighting and post-processing container. - [BlurEffect](https://docs.glorpia.com/instances/blureffect.md) — World blur post-processing. --- Source: https://docs.glorpia.com/instances/corelocalscript Markdown: https://docs.glorpia.com/instances/corelocalscript.md --- title: "CoreLocalScript" description: "A privileged engine-owned local script class used by Glorpia client systems." canonical: "https://docs.glorpia.com/instances/corelocalscript" markdown: "https://docs.glorpia.com/instances/corelocalscript.md" --- # CoreLocalScript A privileged engine-owned local script class used by Glorpia client systems. **Category:** Instances ## Permissions | Name | Type | Description | | --- | --- | --- | | `Owner` | Glorpia engine | Used by Glorpia client systems. | | `Execution` | local core | Runs locally with Glorpia core-script permissions. | | `Source` | read-only | CoreLocalScript source may be viewed in Studio but cannot be edited or replaced by creators. | | `Creation` | engine only | Cannot be created with Instance.new() or inserted from Studio. | | `Related public class` | LocalScript | LocalScript does not receive CoreLocalScript permissions. | ## Built-in scripts Bootstrap, CameraScript, ControlScript and FreecamScript are shown as read-only `CoreLocalScript` instances in Client view during playtesting. Because these are client-only runtime scripts, the CoreScripts folder and its contents are hidden from Explorer when Studio is switched to Server view. > **Note:** `CoreLocalScript` uses Glorpia's privileged local core permission context. `LocalScript` uses the public script permission model. --- Source: https://docs.glorpia.com/instances/corescript Markdown: https://docs.glorpia.com/instances/corescript.md --- title: "CoreScript" description: "A privileged engine-owned script class used by Glorpia core systems." canonical: "https://docs.glorpia.com/instances/corescript" markdown: "https://docs.glorpia.com/instances/corescript.md" --- # CoreScript A privileged engine-owned script class used by Glorpia core systems. **Category:** Instances ## Permissions | Name | Type | Description | | --- | --- | --- | | `Owner` | Glorpia engine | Used by Glorpia core systems. | | `Execution` | core | Runs with Glorpia core-script permissions. | | `Source` | read-only | CoreScript source may be viewed in Studio but cannot be edited or replaced by creators. | | `Creation` | engine only | Cannot be created with Instance.new() or inserted from Studio. | | `Related public class` | ServerScript | ServerScript does not receive CoreScript permissions. | ## Studio playtesting visibility CoreScripts are client-side runtime objects in Studio's playtest Explorer. They are shown in Client view and hidden in Server view. > **Note:** Players and the live Character hierarchy remain visible in Server view even though CoreScripts are hidden. ## Permission model > **Note:** `CoreScript` uses Glorpia's privileged core permission context. `ServerScript` uses the public script permission model. --- Source: https://docs.glorpia.com/instances/folder Markdown: https://docs.glorpia.com/instances/folder.md --- title: "Folder" description: "A hierarchy container with Explorer icon colour, visibility and collision controls for its descendants." canonical: "https://docs.glorpia.com/instances/folder" markdown: "https://docs.glorpia.com/instances/folder.md" --- # Folder A hierarchy container with Explorer icon colour, visibility and collision controls for its descendants. **Category:** Instances ## Properties | Name | Type | Description | | --- | --- | --- | | `Name` | string | Folder name. | | `Parent` | Instance | Where the Folder sits in the hierarchy. | | `IconColor3 / IconColour3` | Color3 / Colour3 | Tints the Folder icon shown in Studio Explorer. Default: white. | | `Visible` | boolean | When false, descendant BaseParts are not rendered. Default: true. | | `CanCollide` | boolean | When false, descendant BaseParts do not participate in collision. Default: true. | `Visible` and `CanCollide` act on descendants without changing the descendants' own `Transparency` or `CanCollide` values. A descendant BasePart is visible or collidable only when its own properties and every containing Model or Folder allow that behavior. ## Hierarchy methods | Name | Type | Description | | --- | --- | --- | | `FindFirstChild(name, recursive?)` | method | Find a child or descendant by name. | | `GetChildren()` | method | Get direct children. | | `GetDescendants()` | method | Get all descendants. | | `Destroy()` | method | Destroy the Folder and its descendants. | ## Example ```luau local folder = Instance.new("Folder") folder.Name = "Generated" folder.IconColour3 = Colour3.fromRGB(90, 170, 255) folder.Parent = workspace local part = Instance.new("Part") part.Name = "GeneratedPart" part.Parent = folder folder.Visible = false folder.CanCollide = false ``` --- Source: https://docs.glorpia.com/instances/frame Markdown: https://docs.glorpia.com/instances/frame.md --- title: "Frame" description: "A rectangular GUI object and container used inside BillboardGui or another Frame." canonical: "https://docs.glorpia.com/instances/frame" markdown: "https://docs.glorpia.com/instances/frame.md" --- # Frame A rectangular GUI object and container used inside BillboardGui or another Frame. **Category:** Instances ## Defaults and properties | Name | Type | Description | | --- | --- | --- | | `Size` | UDim2 | Default: UDim2.new(0, 100, 0, 100). | | `Position` | UDim2 | Position relative to the parent GUI. Default: UDim2.new(0, 0, 0, 0). | | `AnchorPoint` | Vector2 | Point inside the Frame that Position is anchored to. Default: Vector2.new(0, 0). | | `BackgroundColour3` | Colour3 | Background colour. Default: white. BackgroundColor3 remains available as a compatibility alias. | | `BackgroundTransparency` | number | Background transparency from 0 through 1. Default: 0. | | `Visible` | boolean | Controls whether the Frame and its descendants are drawn. Default: true. | | `Rotation` | number | Clockwise rotation in degrees around the Frame centre. Default: 0. | | `ZIndex` | number | Sibling-scoped GUI draw order. Higher values draw above sibling GUI objects. Descendants remain inside the parent stacking context. Default: 1. | | `ClipDescendants` | boolean | Clips GUI descendants to the Frame bounds. Default: false. | | `Interactable` | boolean | Controls whether the GUI object can participate in GUI interaction. Default: true. | | `Modal` | boolean | When true, right-click camera movement is allowed through this GUI object while the pointer is over it. Default: false. | | `BorderColour3` | Colour3 | Border colour. Default: black. BorderColor3 is a compatibility alias. | | `BorderMode` | Enum.BorderMode | Border placement. Default: Enum.BorderMode.Outline. | | `BorderSizePixel` | number | Border thickness in pixels. Default: 0. Disabled in Studio while a UICorner is parented to the Frame. | ## Hierarchy Hierarchy parenting is unrestricted. A Frame renders when it is reached through a valid GUI chain under `ScreenGui`, `SurfaceGui` or `BillboardGui`. Invalid placements remain in the hierarchy but do not render. ## Example ```luau local frame = Instance.new("Frame") frame.Size = UDim2.new(0, 100, 0, 100) frame.Position = UDim2.new(0, 10, 0, 10) frame.AnchorPoint = Vector2.new(0, 0) frame.BackgroundColour3 = Colour3.fromRGB(255, 255, 255) frame.BorderColour3 = Colour3.fromRGB(0, 0, 0) frame.BorderMode = Enum.BorderMode.Outline frame.BorderSizePixel = 0 frame.Visible = true frame.Rotation = 0 frame.ZIndex = 1 frame.ClipDescendants = false frame.Interactable = true frame.BackgroundTransparency = 0 frame.Parent = workspace.Part.BillboardGui ``` ## Related - [UIListLayout](https://docs.glorpia.com/instances/uilistlayout.md) — Automatically arranges GUI children in a list. - [UIGridLayout](https://docs.glorpia.com/instances/uigridlayout.md) — Automatically arranges GUI children in a grid. - [BillboardGui](https://docs.glorpia.com/instances/billboardgui.md) — World-space GUI container. - [TextLabel](https://docs.glorpia.com/instances/textlabel.md) — Text GUI object. - [TextButton](https://docs.glorpia.com/instances/textbutton.md) — Clickable text GUI object. - [UICorner](https://docs.glorpia.com/instances/uicorner.md) — Rounds GUI object corners. - [UIGradient](https://docs.glorpia.com/instances/uigradient.md) — Applies a colour and transparency gradient. - [UIBlur](https://docs.glorpia.com/instances/uiblur.md) — Blurs the 3D backdrop behind the Frame. --- Source: https://docs.glorpia.com/instances/humanoid Markdown: https://docs.glorpia.com/instances/humanoid.md --- title: "Humanoid" description: "Character health, walking and jumping state." canonical: "https://docs.glorpia.com/instances/humanoid" markdown: "https://docs.glorpia.com/instances/humanoid.md" --- # Humanoid Character health, walking and jumping state. **Category:** Instances ## Properties | Name | Type | Description | | --- | --- | --- | | `Health` | number | Readable on both sides. Public ServerScripts may write Health; public LocalScripts cannot change authoritative health. | | `MaxHealth` | number | Read current maximum health. | | `WalkSpeed` | number | Readable on both sides. Public ServerScripts may write movement speed. Public LocalScripts cannot change it. Climbing speed is 70% of WalkSpeed. | | `JumpPower` | number | Readable on both sides. Public ServerScripts may write jump strength. Public LocalScripts cannot change it. | | `MoveDirection` | Vector3 | Read current horizontal movement request. | | `Grounded` | boolean | Read-only runtime state showing whether the Humanoid is grounded. | | `Jump` | boolean | Read current jump request. Set true to request a jump. | | `Dead` | boolean | Read-only runtime state showing whether the Humanoid is dead. | ## Methods and events | Name | Type | Description | | --- | --- | --- | | `Move(direction)` | method | Sets the requested movement direction using a Vector3. | | `MoveTo(position)` | method | ServerScript-only. Walks a valid NPC character Model toward a world-space Vector3 using WalkSpeed. | | `FollowPlayer(player, modeOrBrain, brain)` | method | ServerScript-only. Continuously follows a Player. FollowMode controls stopping behavior and FollowBrain selects Dumb or Smart navigation. | | `TakeDamage(amount)` | method | ServerScript-only. Reduces Health by a non-negative amount through the authoritative Humanoid health path. | | `Died` | signal | Available on both sides. Fires when this Humanoid transitions from alive to dead. | ## Client and server authority Public `LocalScript` code may read replicated Humanoid health and movement settings and connect to `Died`. Authoritative health and movement-setting changes remain server-owned: setting `Health`, `WalkSpeed` or `JumpPower`, and calling `TakeDamage()`, `MoveTo()` or `FollowPlayer()`, are restricted to public `ServerScript` code. Client movement controls such as `Move()` and the `Jump` request are used by the local character-control path. ## Example: Damage And Death ```luau local humanoid = script.Parent:WaitForChild("Humanoid") humanoid.Died:Connect(function() print(script.Parent.Name, "died") end) humanoid:TakeDamage(25) ``` > **Note:** `Died` fires when the authoritative Humanoid state changes from alive to dead. ## NPC character Models An authored Model is treated as an NPC character when it directly contains a `Humanoid` plus BaseParts named `Head`, `Torso`, `Left Arm`, `Right Arm`, `Left Leg` and `Right Leg`. The Studio toolbar **Rig** button inserts this complete R6 NPC structure for you as a Model named `Rig`. Valid NPC character Models display the Model name above the Head, are preserved in GLRP saves, and remain present when playtesting starts. Authored Humanoid values are saved with the place and restored on load. This includes `Health`, `MaxHealth`, `WalkSpeed` and `JumpPower`, so Studio property changes no longer reset to defaults when the place is reopened or playtesting starts. NPC Humanoids use the same authoritative health path as player Humanoids. Reducing `Health` to zero or calling `TakeDamage()` until Health reaches zero fires `Died` and breaks the R6 NPC body into the same physics-driven death state used by player characters. NPCs are not automatically respawned. If a broken-apart NPC falls below the void destroy height, its complete character Model and detached physics bodies are deleted. ## Example: Move An NPC To A Position ```luau local npc = workspace:WaitForChild("Guide") local humanoid = npc:WaitForChild("Humanoid") humanoid.WalkSpeed = 12 humanoid:MoveTo(Vector3.new(40, 0, -20)) ``` > **Note:** `MoveTo()` uses character-style movement: the NPC faces its travel direction, plays the R6 walk animation, is affected by gravity, falls from unsupported edges, and stops when blocked by collidable geometry. It does not perform pathfinding around obstacles. ## Example: Follow A Player ```luau local players = game:GetService("Players") local npc = workspace:WaitForChild("Follower") local humanoid = npc:WaitForChild("Humanoid") local player = players:GetChildren()[1] humanoid:FollowPlayer(player, Enum.FollowBrain.Smart) ``` > **Note:** `FollowPlayer()` continuously resolves the Player's current Character, so you do not need to repeatedly call `MoveTo()`. `Enum.FollowBrain.Dumb` keeps the original direct movement, while `Enum.FollowBrain.Smart` detects gaps, approaches the real takeoff edge, factors landing height into jumps using `JumpPower` and `WalkSpeed`, follows small and large drops onto `CanCollide` platforms, searches a larger area for doorways and bridges, keeps clearance from walls and corners, auto-jumps safe obstacles, and searches for the nearest ladder when the Player is above it. When no safe route exists it waits in place facing the Player instead of oscillating. You can combine a brain with `Enum.FollowMode.Companion` or `Enum.FollowMode.Chase` as a third argument. ## Example: Make The Character Move ```luau local player = game:GetService("Players").LocalPlayer local character = player.Character local humanoid = character:FindFirstChild("Humanoid") humanoid.WalkSpeed = 20 humanoid:Move(Vector3.new(0, 0, -1)) humanoid.Jump = true ``` > **Note:** Movement direction is horizontal; Glorpia removes the Y component from movement requests. ## Related - [Humanoid:TakeDamage()](https://docs.glorpia.com/scripting/functions/take-damage.md) — Reduce authoritative Humanoid health. - [Humanoid:MoveTo()](https://docs.glorpia.com/scripting/functions/move-to.md) — Move an authored NPC toward a world position. - [Humanoid:FollowPlayer()](https://docs.glorpia.com/scripting/functions/follow-player.md) — Continuously follow a Player without manual retargeting. - [Humanoid.Died](https://docs.glorpia.com/scripting/events/humanoid-died.md) — Connect code to the death transition. - [WaitForChild()](https://docs.glorpia.com/scripting/functions/wait-for-child.md) — Yield until a named direct child exists. --- Source: https://docs.glorpia.com/instances/instance Markdown: https://docs.glorpia.com/instances/instance.md --- title: "Instance" description: "The base hierarchy class shared by Glorpia objects that appear in the instance tree." canonical: "https://docs.glorpia.com/instances/instance" markdown: "https://docs.glorpia.com/instances/instance.md" --- # Instance The base hierarchy class shared by Glorpia objects that appear in the instance tree. **Category:** Instances / Base class ## Properties | Name | Type | Description | | --- | --- | --- | | `Name` | string | The instance name used in Explorer and hierarchy lookup. | | `ClassName` | string | The concrete class name of the instance. | | `Parent` | Instance or nil | The instance that contains this object in the hierarchy. | ## Hierarchy methods | Name | Type | Description | | --- | --- | --- | | `FindFirstChild(name, recursive?)` | method | Finds a child by name, optionally searching descendants. | | `WaitForChild(name, timeout?)` | method | Waits for a named child and returns it when available. | | `FindFirstChildOfClass(className)` | method | Finds the first direct child with the exact ClassName. | | `FindFirstChildWhichIsA(className, recursive?)` | method | Finds the first child compatible with a class, optionally recursively. | | `Clone()` | method | Creates a copy of the instance and its supported descendants. | | `GetChildren()` | method | Returns direct children. | | `GetDescendants()` | method | Returns descendants recursively. | | `IsA(className)` | method | Checks whether the instance is compatible with a class name. | | `GetFullName()` | method | Returns the hierarchy path for the instance. | | `Destroy()` | method | Removes the instance and its descendants from the hierarchy. | > **Note:** Concrete classes add their own properties, methods and events on top of this shared hierarchy API. Any existing Instance can contain other Instances. This includes classes such as Camera, Humanoid, Player, BasePart and ValueBase descendants; parenting is not limited to Model and Folder containers. > **Note:** Rendering and world physics are based on ancestry rather than the immediate parent class. A Part at any depth below Workspace is part of the rendered world. A Part stored below Players, Lighting or ReplicatedStorage is replicated as hierarchy data but is not rendered or simulated until it becomes a Workspace descendant. ## Class reference - [BasePart](https://docs.glorpia.com/instances/basepart.md) — Shared physical and rendered part behavior. - [Model](https://docs.glorpia.com/instances/model.md) — Groups instances and exposes pivot controls. - [Folder](https://docs.glorpia.com/instances/folder.md) — Hierarchy container. - [ValueBase](https://docs.glorpia.com/instances/valuebase.md) — Base class for hierarchy value objects. --- Source: https://docs.glorpia.com/instances/intvalue Markdown: https://docs.glorpia.com/instances/intvalue.md --- title: "IntValue" description: "Stores a signed integer." canonical: "https://docs.glorpia.com/instances/intvalue" markdown: "https://docs.glorpia.com/instances/intvalue.md" --- # IntValue Stores a signed integer. **Category:** Instances / ValueBase ## Inheritance `IntValue` is a `ValueBase` class and inherits the shared hierarchy API from `Instance`. ## Members | Name | Type | Description | | --- | --- | --- | | `Value` | integer | The value stored by this instance. inf and -inf are accepted as the positive and negative integer limits. | | `Changed` | signal | Fires when Value changes and passes the new value. | ## Example ```luau local value = Instance.new("IntValue") value.Name = "ExampleValue" value.Value = 10 value.Parent = workspace value.Changed:Connect(function(newValue) print(newValue) end) ``` ## Related - [ValueBase](https://docs.glorpia.com/instances/valuebase.md) — Shared Value and Changed members for value classes. - [Instances](https://docs.glorpia.com/instances.md) — Browse the complete Glorpia class reference. --- Source: https://docs.glorpia.com/instances/localscript Markdown: https://docs.glorpia.com/instances/localscript.md --- title: "LocalScript" description: "Public creator-authored Luau that runs on each Glorpia client." canonical: "https://docs.glorpia.com/instances/localscript" markdown: "https://docs.glorpia.com/instances/localscript.md" --- # LocalScript Public creator-authored Luau that runs on each Glorpia client. **Category:** Instances ## Availability | Name | Type | Description | | --- | --- | --- | | `Execution context` | client | Enabled LocalScripts run when they exist inside the local PlayerGui, local PlayerScripts, or the local Player's Character. | | `Studio insertion` | available | Insert LocalScript anywhere in Explorer. Template or invalid locations remain inactive until a runnable runtime copy/context exists. | | `Instance.new()` | supported | Instance.new("LocalScript") creates the hierarchy object. If it is enabled and enters a valid local runtime context, it starts once without restarting existing scripts. | | `Enabled` | boolean | Read/write local hierarchy property. Enabling an unstarted LocalScript in a valid runtime context allows it to start on the next runtime script scan. | | `script global` | available | Inside the script, script refers to that LocalScript instance. | > **Note:** `LocalScript` uses the public client permission set. It does not receive the privileged permissions of `CoreLocalScript`. ## Starter templates and runtime copies `StarterGui`, `StarterPlayerScripts` and `StarterCharacterScripts` are template locations. LocalScripts stored in those template trees do not execute there. When the engine creates the local `PlayerGui`, `PlayerScripts` or Character, the corresponding LocalScript copies become runnable. Respawned character copies receive new runtime IDs and start once for that character. ## Client-only APIs LocalScripts can use client APIs such as `UserInputService`, `RunService.RenderStepped`, `Players.LocalPlayer`, `workspace.CurrentCamera`, `RemoteEvent:FireServer()`, `RemoteEvent.OnClientEvent`, `RemoteFunction:InvokeServer()` and `RemoteFunction.OnClientInvoke`. `ServerScriptService` and `ServerStorage` are server-only. Public LocalScripts cannot request or directly access those services. `BasePart.Touched` is available to LocalScripts and is evaluated against that client's replicated/local world. Changes made by its LocalScript callback stay client-local unless the script explicitly sends data to the server through a RemoteEvent or RemoteFunction. Authoritative Humanoid mutations such as `Humanoid:TakeDamage()`, `Humanoid:MoveTo()`, `Humanoid:FollowPlayer()`, and writes to `Health`, `WalkSpeed` or `JumpPower` remain server-only. ## Example: client input ```luau local UserInputService = game:GetService("UserInputService") local Players = game:GetService("Players") print("Running for", Players.LocalPlayer.Name) UserInputService.InputBegan:Connect(function(input) if input.KeyCode == Enum.KeyCode.Space then print("Space pressed on this client") end end) ``` ## Related - [Public Scripts](https://docs.glorpia.com/scripting/public-scripts.md) — ServerScript and LocalScript execution and permission boundaries. - [UserInputService](https://docs.glorpia.com/services/userinputservice.md) — Client keyboard and mouse input. - [RunService](https://docs.glorpia.com/services/runservice.md) — Client and server frame signals. - [RemoteEvent](https://docs.glorpia.com/instances/remoteevent.md) — Send one-way messages between LocalScripts and ServerScripts. - [RemoteFunction](https://docs.glorpia.com/instances/remotefunction.md) — Invoke a callback on the other side and receive return values. --- Source: https://docs.glorpia.com/instances/model Markdown: https://docs.glorpia.com/instances/model.md --- title: "Model" description: "Groups instances and provides model-level visibility, collision, pivot and uniform scaling controls." canonical: "https://docs.glorpia.com/instances/model" markdown: "https://docs.glorpia.com/instances/model.md" --- # Model Groups instances and provides model-level visibility, collision, pivot and uniform scaling controls. **Category:** Instances ## Properties | Name | Type | Description | | --- | --- | --- | | `Name` | string | Model name. | | `Parent` | Instance | Where the Model sits in the hierarchy. | | `Visible` | boolean | When false, descendant BaseParts are not rendered. Default: true. | | `CanCollide` | boolean | When false, descendant BaseParts do not participate in collision. Default: true. | | `Scale` | number | Current uniform Model scale. Default: 1. Setting Scale scales descendant BaseParts around the Model pivot. | `Visible` and `CanCollide` act on descendants without changing the descendants' own `Transparency` or `CanCollide` values. A descendant BasePart is visible or collidable only when its own properties and every containing Model or Folder allow that behavior. ## Model methods | Name | Type | Description | | --- | --- | --- | | `GetPivot()` | CFrame | Returns the Model's current pivot. | | `PivotTo(cframe)` | method | Moves and rotates descendant BaseParts around the Model pivot. | | `ScaleTo(scale)` | method | Sets the Model to an absolute uniform scale around its pivot. | | `GetScale()` | number | Returns the Model's current uniform scale. | | `GetBoundingBox()` | CFrame, Vector3 | Returns the pivot-oriented bounding-box CFrame and size of all descendant BaseParts. | | `GetChildren()` | table | Returns direct child instances. | | `GetDescendants()` | table | Returns all descendants. | ## How the pivot is chosen If the Model has a direct child named `Torso` that is a BasePart, Glorpia uses it as the pivot. Otherwise it uses the first descendant BasePart it finds. > **Note:** `GetPivot()`, `PivotTo()`, `ScaleTo()` and `GetBoundingBox()` require the Model to contain at least one BasePart. ## Example: Visibility and collision ```luau local model = workspace:FindFirstChild("Building") if model and model:IsA("Model") then model.Visible = false model.CanCollide = false task.wait(1) model.Visible = true model.CanCollide = true end ``` ## Example: Move a grouped object ```luau local model = workspace:FindFirstChild("MovingPlatform") if model and model:IsA("Model") then local current = model:GetPivot() model:PivotTo(current + Vector3.new(0, 5, 0)) end ``` ## Example: Scale and measure a Model ```luau local model = workspace:FindFirstChild("Vehicle") if model and model:IsA("Model") then model:ScaleTo(1.5) print(model:GetScale()) local boundsCFrame, boundsSize = model:GetBoundingBox() print(boundsCFrame.Position, boundsSize) end ``` `ScaleTo()` uses an absolute scale value. Calling `ScaleTo(2)` makes the Model twice its authored size regardless of its current scale. ## Detailed method pages - [GetPivot()](https://docs.glorpia.com/scripting/functions/get-pivot.md) — Read the Model's pivot CFrame. - [PivotTo()](https://docs.glorpia.com/scripting/functions/pivot-to.md) — Move and rotate the full Model. - [ScaleTo()](https://docs.glorpia.com/scripting/functions/scale-to.md) — Set the Model to an absolute uniform scale. - [GetScale()](https://docs.glorpia.com/scripting/functions/get-scale.md) — Read the Model's current scale. - [GetBoundingBox()](https://docs.glorpia.com/scripting/functions/get-bounding-box.md) — Read the Model's pivot-oriented bounds. --- Source: https://docs.glorpia.com/instances/numbervalue Markdown: https://docs.glorpia.com/instances/numbervalue.md --- title: "NumberValue" description: "Stores a number." canonical: "https://docs.glorpia.com/instances/numbervalue" markdown: "https://docs.glorpia.com/instances/numbervalue.md" --- # NumberValue Stores a number. **Category:** Instances / ValueBase ## Inheritance `NumberValue` is a `ValueBase` class and inherits the shared hierarchy API from `Instance`. ## Members | Name | Type | Description | | --- | --- | --- | | `Value` | number | The value stored by this instance. inf and -inf are supported. | | `Changed` | signal | Fires when Value changes and passes the new value. | ## Example ```luau local value = Instance.new("NumberValue") value.Name = "ExampleValue" value.Value = 12.5 value.Parent = workspace value.Changed:Connect(function(newValue) print(newValue) end) ``` ## Related - [ValueBase](https://docs.glorpia.com/instances/valuebase.md) — Shared Value and Changed members for value classes. - [Instances](https://docs.glorpia.com/instances.md) — Browse the complete Glorpia class reference. --- Source: https://docs.glorpia.com/instances/objectvalue Markdown: https://docs.glorpia.com/instances/objectvalue.md --- title: "ObjectValue" description: "Stores a reference to another Instance." canonical: "https://docs.glorpia.com/instances/objectvalue" markdown: "https://docs.glorpia.com/instances/objectvalue.md" --- # ObjectValue Stores a reference to another Instance. **Category:** Instances / ValueBase ## Inheritance `ObjectValue` is a `ValueBase` class and inherits the shared hierarchy API from `Instance`. ## Members | Name | Type | Description | | --- | --- | --- | | `Value` | Instance or nil | The value stored by this instance. | | `Changed` | signal | Fires when Value changes and passes the new value. | ## Example ```luau local value = Instance.new("ObjectValue") value.Name = "ExampleValue" value.Value = workspace:FindFirstChild("Part") value.Parent = workspace value.Changed:Connect(function(newValue) print(newValue) end) ``` ## Referenced instances `ObjectValue` stores the referenced Instance ID. If the target is unavailable on a client, reading `Value` returns `nil` until that Instance is present. ## Related - [ValueBase](https://docs.glorpia.com/instances/valuebase.md) — Shared Value and Changed members for value classes. - [Instances](https://docs.glorpia.com/instances.md) — Browse the complete Glorpia class reference. --- Source: https://docs.glorpia.com/instances/part Markdown: https://docs.glorpia.com/instances/part.md --- title: "Part" description: "The general-purpose physical building block in Glorpia." canonical: "https://docs.glorpia.com/instances/part" markdown: "https://docs.glorpia.com/instances/part.md" --- # Part The general-purpose physical building block in Glorpia. **Category:** Instances ## Inheritance `Part` is a `BasePart`, so it uses all BasePart transform, geometry, appearance and physics properties. - [BasePart properties](https://docs.glorpia.com/instances/basepart.md) — Position, Size, CFrame, Shape, Bevel, Colour, Anchored, CanCollide and more. ## Defaults when created by script | Name | Type | Description | | --- | --- | --- | | `Size` | Vector3 | 4, 1, 2 | | `Shape` | Enum.PartShape | Block | | `Bevel` | number | 0 | | `ShadeSmooth` | boolean | true | | `Detail` | integer | 8 | | `Anchored` | boolean | true | | `CanCollide` | boolean | true | ## Shapes Parts support Block, Ball, Cylinder, Wedge and CornerWedge geometry through `Shape`. ```luau local wedge = Instance.new("Part") wedge.Shape = Enum.PartShape.CornerWedge wedge.Size = Vector3.new(6, 4, 6) wedge.Parent = workspace ``` ## Example: Create A Platform Create the Part first, configure it while it is unparented, then parent it into Workspace. ```luau local platform = Instance.new("Part") platform.Name = "Platform" platform.Size = Vector3.new(12, 1, 8) platform.Position = Vector3.new(0, 4, 0) platform.Colour = Colour3.fromRGB(90, 120, 255) platform.Anchored = true platform.Parent = workspace ``` --- Source: https://docs.glorpia.com/instances/player Markdown: https://docs.glorpia.com/instances/player.md --- title: "Player" description: "Represents a player in the Players service." canonical: "https://docs.glorpia.com/instances/player" markdown: "https://docs.glorpia.com/instances/player.md" --- # Player Represents a player in the Players service. **Category:** Instances ## Properties | Name | Type | Description | | --- | --- | --- | | `Name` | string | Player name. Read-only to public ServerScripts and LocalScripts; CoreScripts may change it. | | `ClassName` | string | Player. | | `PlayerID` | number | Read-only numeric Glorpia account identifier. Online Studio playtests use the signed-in account ID. Offline Studio playtests use 0. | | `Platform` | string | Read-only operating-system family reported by the player's client: Windows, macOS, Linux, iOS, Android, or Unknown. | | `FramesPerSecond` | number | Read-only most recently reported client frame rate. It is 0 until the client has produced its first sample. | | `Character` | Model or nil | The player's current character Model when one exists. It is the same runtime Instance exposed under Workspace. | > **Note:** `Name` is protected from public scripts so creator code cannot rename runtime Player instances. `PlayerID`, `Platform` and `FramesPerSecond` are also read-only runtime data. ## Methods | Name | Type | Description | | --- | --- | --- | | `GetMouse()` | Mouse | Client-only. Returns the Mouse object for Players.LocalPlayer. The Mouse exposes X, Y, Button1Down, Button1Up, Button2Down, Button2Up, Move, WheelForward and WheelBackward. | | `GetNetworkPing()` | number | Returns the player's most recently measured round-trip network latency in seconds. It is 0 until a ping sample is available. | > **Note:** `GetMouse()` is available from LocalScripts and CoreScripts and only for `Players.LocalPlayer`. `GetNetworkPing()` is readable for Player instances on both client and server. ## Events | Name | Type | Description | | --- | --- | --- | | `CharacterAdded` | signal (Model) | Fires when the Player receives a new Character Model. | | `CharacterRemoving` | signal (Model) | Fires when the Player's current Character is removed or replaced. | ## Camera | Name | Type | Description | | --- | --- | --- | | `CameraMaxZoomDistance` | number | Maximum gameplay camera zoom distance. Defaults to 128. | | `CameraMinZoomDistance` | number | Minimum gameplay camera zoom distance. Defaults to 0.5. | | `NameDisplayDistance` | number | Maximum camera distance in studs at which this player's character username tag is rendered. Defaults to 100; 0 hides the tag. | > **Note:** `CameraMinZoomDistance` and `CameraMaxZoomDistance` are read by the default CameraScript and can be changed at runtime. `NameDisplayDistance` is evaluated against the active camera when the username tag is rendered. ## Children Player is a normal hierarchy parent. Scripts and Studio can parent other Instances beneath a Player, and those children replicate with the Player hierarchy. Physical Parts beneath a Player are stored and replicated but are not rendered or simulated until reparented somewhere below Workspace. ## Studio playtests When Studio starts an online playtest, the Player instance uses the signed-in Studio account's username and `PlayerID`. In Studio offline mode, the playtest identity defaults to `Player` with `PlayerID` `0`. The Player and its Character hierarchy remain visible in both Client and Server view. In Server view, Player data is for inspection while the server remains authoritative over the runtime character and replicated world state. ## Player runtime example ```luau local Players = game:GetService("Players") local player = Players.LocalPlayer if player then local mouse = player:GetMouse() mouse.Button1Down:Connect(function() print("Mouse:", mouse.X, mouse.Y) end) player.CharacterAdded:Connect(function(character) print("Character added:", character:GetFullName()) end) player.CharacterRemoving:Connect(function(character) print("Character removing") end) print("Ping seconds:", player:GetNetworkPing()) end ``` ## Related - [Players](https://docs.glorpia.com/services/players.md) — LocalPlayer, GetPlayers(), PlayerAdded, PlayerRemoving and player lookup. - [Client/Server Playtesting](https://docs.glorpia.com/studio/playtesting.md) — How Player and Character instances appear in the two runtime views. - [Offline Mode](https://docs.glorpia.com/studio/offline-mode.md) — Why offline playtests use PlayerID 0. --- Source: https://docs.glorpia.com/instances/playergui Markdown: https://docs.glorpia.com/instances/playergui.md --- title: "PlayerGui" description: "The runtime GUI container created inside each Player." canonical: "https://docs.glorpia.com/instances/playergui" markdown: "https://docs.glorpia.com/instances/playergui.md" --- # PlayerGui The runtime GUI container created inside each Player. **Category:** Instances ## Runtime behaviour Every Player receives a `PlayerGui`. StarterGui descendants are cloned into it when the Player is created. ScreenGui descendants of the local PlayerGui render on that client. LocalScripts cloned into the local PlayerGui start in the client runtime; the corresponding templates in StarterGui do not run. > **Note:** PlayerGui is runtime-owned and is not saved as authored place hierarchy data. ## Respawning When the local character respawns, ScreenGuis with `ResetOnSpawn = true` are recreated from StarterGui. ScreenGuis with `ResetOnSpawn = false` keep their current runtime state. ## Related - [StarterGui](https://docs.glorpia.com/services/startergui.md) — Template source for PlayerGui contents. - [ScreenGui](https://docs.glorpia.com/instances/screengui.md) — Screen-space GUI root. - [LocalScript](https://docs.glorpia.com/instances/localscript.md) — Client script execution contexts. --- Source: https://docs.glorpia.com/instances/playerscripts Markdown: https://docs.glorpia.com/instances/playerscripts.md --- title: "PlayerScripts" description: "The runtime client-script container created inside each Player." canonical: "https://docs.glorpia.com/instances/playerscripts" markdown: "https://docs.glorpia.com/instances/playerscripts.md" --- # PlayerScripts The runtime client-script container created inside each Player. **Category:** Instances ## Runtime behaviour Every Player receives a `PlayerScripts` container. The contents of `StarterPlayer.StarterPlayerScripts` are cloned into it. Enabled LocalScripts in the local Player's PlayerScripts start in that client's runtime. LocalScripts in the StarterPlayerScripts template itself remain inactive. > **Note:** PlayerScripts is runtime-owned and is not saved as authored place hierarchy data. ## Related - [StarterPlayer](https://docs.glorpia.com/services/starterplayer.md) — Owns StarterPlayerScripts and StarterCharacterScripts templates. - [StarterPlayerScripts](https://docs.glorpia.com/instances/starterplayerscripts.md) — Template copied into PlayerScripts. - [LocalScript](https://docs.glorpia.com/instances/localscript.md) — Client creator script class. --- Source: https://docs.glorpia.com/instances/remoteevent Markdown: https://docs.glorpia.com/instances/remoteevent.md --- title: "RemoteEvent" description: "One-way communication between creator LocalScripts and ServerScripts." canonical: "https://docs.glorpia.com/instances/remoteevent" markdown: "https://docs.glorpia.com/instances/remoteevent.md" --- # RemoteEvent One-way communication between creator LocalScripts and ServerScripts. **Category:** Instances ## Members | Name | Type | Description | | --- | --- | --- | | `MaxRequestsPerMinute` | number | Maximum events accepted per minute per Player. 0 disables the limit. | | `Reliability` | Enum.NetworkReliability | Reliable keeps ordered delivery. Unreliable may discard an older pending packet when a newer packet for the same remote and target replaces it. | | `Payload` | Enum.RemotePayload | Default permits every supported remote value type. Custom enforces AllowedPayloadTypes. | | `AllowedPayloadTypes` | array | Saved list of payload types allowed when Payload is Custom. Studio displays this list as checkboxes. | | `Timeout` | number | Native timeout in seconds. RemoteEvents do not wait for a response, so this mainly applies to RemoteFunction requests using the same remote configuration system. | | `NetworkPriority` | Enum.NetworkPriority | Ranks queued remote traffic as High, Medium, Default, or Low. | | `FireServer(...)` | LocalScript | Sends values from the current client to the authoritative server. | | `OnServerEvent` | ServerScript signal | Fires on the server. The first callback argument is the Player that sent the event. | | `FireClient(player, ...)` | ServerScript | Sends values to one Player's client. | | `FireAllClients(...)` | ServerScript | Sends values to all connected clients. | | `OnClientEvent` | LocalScript signal | Fires when the server sends this RemoteEvent to the local client. | ## Example: client to server ```luau -- LocalScript local ReplicatedStorage = game:GetService("ReplicatedStorage") local event = ReplicatedStorage:WaitForChild("ActionEvent") event:FireServer("JumpButton") ``` ```luau -- ServerScript local ReplicatedStorage = game:GetService("ReplicatedStorage") local event = ReplicatedStorage:WaitForChild("ActionEvent") event.OnServerEvent:Connect(function(player, action) print(player.Name, action) end) ``` ## Example: server to clients ```luau -- ServerScript event:FireClient(player, "RoundStarted") event:FireAllClients("WeatherChanged", "Rain") ``` ```luau -- LocalScript event.OnClientEvent:Connect(function(kind, value) print(kind, value) end) ``` ## Network configuration ```luau -- ServerScript runtime configuration event.MaxRequestsPerMinute = 120 event.Reliability = Enum.NetworkReliability.Unreliable event.Payload = Enum.RemotePayload.Custom event.AllowedPayloadTypes = { "Number", "Vector3", "Player" } event.NetworkPriority = Enum.NetworkPriority.High ``` When `Payload` is `Custom`, Studio shows checkboxes for Nil, Boolean, Number, String, Vector3, Color3, Instance, Player, and Table. The checked values are persisted as the `AllowedPayloadTypes` array in the place. > **Note:** `MaxRequestsPerMinute` is tracked per Player and per direction. A value of `0` means unlimited. ## Arguments Remote messages support `nil`, booleans, numbers, strings, `Vector3`, `Color3`/`Colour3`, Instances, Players and nested tables containing supported values. Custom payload rules are checked while encoding and decoding remote packets. > **Note:** Use RemoteEvents for notifications and actions that do not need an immediate return value. ServerScripts should validate client-supplied values before using them as authoritative game state. ## Related - [RemoteFunction](https://docs.glorpia.com/instances/remotefunction.md) — Request/response communication with return values. - [ReplicatedStorage](https://docs.glorpia.com/services/replicatedstorage.md) — Shared hierarchy where remotes can be visible to both sides. - [LocalScript](https://docs.glorpia.com/instances/localscript.md) — Creator client scripts. - [ServerScript](https://docs.glorpia.com/instances/serverscript.md) — Creator authoritative server scripts. --- Source: https://docs.glorpia.com/instances/remotefunction Markdown: https://docs.glorpia.com/instances/remotefunction.md --- title: "RemoteFunction" description: "Request/response communication between creator LocalScripts and ServerScripts." canonical: "https://docs.glorpia.com/instances/remotefunction" markdown: "https://docs.glorpia.com/instances/remotefunction.md" --- # RemoteFunction Request/response communication between creator LocalScripts and ServerScripts. **Category:** Instances ## Members | Name | Type | Description | | --- | --- | --- | | `MaxRequestsPerMinute` | number | Maximum requests accepted per minute per Player. 0 disables the limit. | | `Reliability` | Enum.NetworkReliability | Reliable keeps ordered delivery. Unreliable may discard an older pending packet when superseded by a newer packet for the same remote and target. | | `Payload` | Enum.RemotePayload | Default permits every supported remote value type. Custom enforces AllowedPayloadTypes. | | `AllowedPayloadTypes` | array | Saved list of payload types allowed when Payload is Custom. Studio displays this list as checkboxes. | | `Timeout` | number | Hard native request timeout in seconds. The default is 30 seconds. A request that does not receive a response before the deadline raises a timeout error. | | `NetworkPriority` | Enum.NetworkPriority | Ranks queued remote traffic as High, Medium, Default, or Low. | | `InvokeServer(...)` | LocalScript | Calls the server callback and yields until its return values arrive. | | `OnServerInvoke` | ServerScript callback | Assign a function that receives the sending Player followed by the invocation arguments. | | `InvokeClient(player, ...)` | ServerScript | Calls one client's callback and yields until its return values arrive. | | `OnClientInvoke` | LocalScript callback | Assign a function that handles an invocation from the server. | ## Example: client asks the server ```luau -- ServerScript local ReplicatedStorage = game:GetService("ReplicatedStorage") local getRound = ReplicatedStorage:WaitForChild("GetRound") getRound.OnServerInvoke = function(player) return 3, "Playing" end ``` ```luau -- LocalScript local ReplicatedStorage = game:GetService("ReplicatedStorage") local getRound = ReplicatedStorage:WaitForChild("GetRound") local round, state = getRound:InvokeServer() print(round, state) ``` ## Network configuration ```luau -- ServerScript runtime configuration getRound.MaxRequestsPerMinute = 30 getRound.Reliability = Enum.NetworkReliability.Reliable getRound.Payload = Enum.RemotePayload.Custom getRound.AllowedPayloadTypes = { "Number", "String", "Player" } getRound.Timeout = 5 getRound.NetworkPriority = Enum.NetworkPriority.Medium ``` When `Payload` is `Custom`, Studio shows checkboxes for Nil, Boolean, Number, String, Vector3, Color3, Instance, Player, and Table. The checked values are saved as an array. > **Note:** For `Reliability = Enum.NetworkReliability.Unreliable`, an invocation or response can be discarded when superseded before transmission. If that happens, the caller remains protected by `Timeout`. ## Arguments and returns RemoteFunction arguments and return values support `nil`, booleans, numbers, strings, `Vector3`, `Color3`/`Colour3`, Instances, Players and nested tables containing supported values. Custom payload rules are enforced on both send and receive. > **Note:** Only one callback is assigned to `OnServerInvoke` or `OnClientInvoke`. Use a RemoteEvent when a return value is not needed. ## Related - [RemoteEvent](https://docs.glorpia.com/instances/remoteevent.md) — One-way client/server messages. - [ReplicatedStorage](https://docs.glorpia.com/services/replicatedstorage.md) — Shared hierarchy where remotes can be visible to both sides. - [LocalScript](https://docs.glorpia.com/instances/localscript.md) — Creator client scripts. - [ServerScript](https://docs.glorpia.com/instances/serverscript.md) — Creator authoritative server scripts. --- Source: https://docs.glorpia.com/instances/screengui Markdown: https://docs.glorpia.com/instances/screengui.md --- title: "ScreenGui" description: "A screen-space GUI container rendered from the local player's PlayerGui." canonical: "https://docs.glorpia.com/instances/screengui" markdown: "https://docs.glorpia.com/instances/screengui.md" --- # ScreenGui A screen-space GUI container rendered from the local player's PlayerGui. **Category:** Instances ## Properties | Name | Type | Description | | --- | --- | --- | | `Enabled` | boolean | Controls whether this ScreenGui and its descendants render and receive GUI input. Default: true. | | `DisplayOrder` | number | Orders ScreenGuis on the screen. Higher values draw and receive input above lower values. Default: 0. | | `IgnoreGuiInset` | boolean | When true, the GUI uses the complete viewport instead of the normal screen inset. Default: false. | | `ResetOnSpawn` | boolean | When true, the runtime copy is recreated from StarterGui when the character respawns. Default: true. | ## Runtime hierarchy `StarterGui` is a template. When a Player is created, its contents are cloned into that Player's `PlayerGui`. ScreenGuis render from the local player's PlayerGui, not directly from StarterGui. LocalScripts inside the StarterGui template remain inactive there. Their cloned copies inside the local PlayerGui start in the client runtime. > **Note:** Hierarchy parenting is unrestricted. A ScreenGui outside StarterGui or PlayerGui remains in Explorer but does not render. ScreenGui renders directly in native viewport pixels. Frame, TextLabel and TextButton visuals are rasterized by the shared Skia 2D renderer, including backgrounds, rounded corners, UIGradient and text, then composited by wgpu. UIBlur uses the rendered 3D scene as a local backdrop while the Skia foreground remains sharp. ScreenGui is the top GUI layer: BillboardGui and SurfaceGui remain below it even when their AlwaysOnTop property is true. ## Studio editing Studio can preview StarterGui while editing. With the Development UI toggle enabled, visible ScreenGui descendants can be selected and dragged directly in the viewport. The drag tool converts Position, Size and AnchorPoint to responsive scale-based values rather than resolution-specific offsets. ## Example ```luau local gui = Instance.new("ScreenGui") gui.DisplayOrder = 10 gui.ResetOnSpawn = false gui.Parent = game:GetService("StarterGui") local button = Instance.new("TextButton") button.Size = UDim2.new(0.2, 0, 0.08, 0) button.Position = UDim2.new(0.5, 0, 0.9, 0) button.AnchorPoint = Vector2.new(0.5, 0.5) button.Text = "Play" button.Parent = gui ``` ## Related - [StarterGui](https://docs.glorpia.com/services/startergui.md) — Template GUI hierarchy copied to each PlayerGui. - [PlayerGui](https://docs.glorpia.com/instances/playergui.md) — Runtime screen GUI container owned by a Player. - [Frame](https://docs.glorpia.com/instances/frame.md) — Rectangular GUI object and container. - [TextButton](https://docs.glorpia.com/instances/textbutton.md) — Clickable client GUI object. --- Source: https://docs.glorpia.com/instances/scrollingframe Markdown: https://docs.glorpia.com/instances/scrollingframe.md --- title: "ScrollingFrame" description: "A scrollable rectangular GUI container for content larger than its visible bounds." canonical: "https://docs.glorpia.com/instances/scrollingframe" markdown: "https://docs.glorpia.com/instances/scrollingframe.md" --- # ScrollingFrame A scrollable rectangular GUI container for content larger than its visible bounds. **Category:** Instances ## Defaults and properties | Name | Type | Description | | --- | --- | --- | | `Size` | UDim2 | Default: UDim2.new(0, 100, 0, 100). | | `Position` | UDim2 | Position relative to the parent GUI. Default: UDim2.new(0, 0, 0, 0). | | `AnchorPoint` | Vector2 | Point inside the ScrollingFrame that Position is anchored to. Default: Vector2.new(0, 0). | | `BackgroundColour3` | Colour3 | Background colour. Default: white. BackgroundColor3 is a compatibility alias. | | `BackgroundTransparency` | number | Background transparency from 0 through 1. Default: 0. | | `Visible` | boolean | Controls whether the ScrollingFrame and its descendants are drawn. Default: true. | | `Rotation` | number | Clockwise rotation in degrees around the ScrollingFrame centre. Default: 0. | | `ZIndex` | number | Sibling-scoped GUI draw order. Higher values draw above sibling GUI objects. Descendants remain inside the parent stacking context. Default: 1. | | `ClipDescendants` | boolean | Clips descendants to the visible ScrollingFrame bounds. Default: true. | | `Interactable` | boolean | Controls whether the GUI object participates in GUI interaction. Default: true. | | `Modal` | boolean | When true, right-click camera movement is allowed through this GUI object while the pointer is over it. Default: false. | | `CanvasPosition` | Vector2 | Current scroll offset in authored GUI pixels. Default: Vector2.new(0, 0). | | `CanvasSize` | UDim2 | Scrollable content size relative to the visible ScrollingFrame. Default: UDim2.new(0, 0, 2, 0). | | `ScrollBarThickness` | number | Scrollbar thickness in pixels. Default: 12. | | `ScrollBarImageColour3` | Colour3 | Scrollbar colour. Default: black. ScrollBarImageColor3 is a compatibility alias. | | `ScrollBarImageTransparency` | number | Scrollbar transparency from 0 through 1. Default: 0. | | `ScrollingEnabled` | boolean | Controls mouse-wheel scrolling and scrollbar dragging. Default: true. | | `BorderColour3` | Colour3 | Border colour. Default: black. BorderColor3 is a compatibility alias. | | `BorderMode` | Enum.BorderMode | Border placement. Default: Enum.BorderMode.Outline. | | `BorderSizePixel` | number | Border thickness in pixels. Default: 0. | ## Scrolling Children use their normal `Position` values inside the canvas. `CanvasPosition` offsets the child content while the visible area remains fixed. Mouse-wheel input scrolls vertically while the pointer is over the ScrollingFrame. The visible horizontal and vertical scrollbar thumbs can also be clicked and dragged. Both input paths clamp the offset to the current CanvasSize. ## Example ```luau local scrolling = Instance.new("ScrollingFrame") scrolling.Size = UDim2.new(0, 240, 0, 160) scrolling.CanvasSize = UDim2.new(0, 0, 2, 0) scrolling.ScrollBarThickness = 10 scrolling.ScrollBarImageColour3 = Colour3.fromRGB(80, 80, 80) scrolling.ScrollingEnabled = true scrolling.Parent = game:GetService("StarterGui").ScreenGui ``` ## Related - [UIListLayout](https://docs.glorpia.com/instances/uilistlayout.md) — Automatically arranges GUI children in a list. - [UIGridLayout](https://docs.glorpia.com/instances/uigridlayout.md) — Automatically arranges GUI children in a grid. - [Frame](https://docs.glorpia.com/instances/frame.md) — Rectangular GUI container without scrolling. - [ScreenGui](https://docs.glorpia.com/instances/screengui.md) — Screen-space GUI container. - [SurfaceGui](https://docs.glorpia.com/instances/surfacegui.md) — GUI rendered on a world part face. - [BillboardGui](https://docs.glorpia.com/instances/billboardgui.md) — World-space GUI container. --- Source: https://docs.glorpia.com/instances/serverscript Markdown: https://docs.glorpia.com/instances/serverscript.md --- title: "ServerScript" description: "The public creator-authored script class that runs on Glorpia's authoritative server." canonical: "https://docs.glorpia.com/instances/serverscript" markdown: "https://docs.glorpia.com/instances/serverscript.md" --- # ServerScript The public creator-authored script class that runs on Glorpia's authoritative server. **Category:** Instances ## Availability | Name | Type | Description | | --- | --- | --- | | `Execution context` | server | Runs on the authoritative game simulation. | | `Execution` | available | Enabled ServerScripts under Workspace or ServerScriptService start once when discovered; connected callbacks can keep running. | | `Studio insertion` | available | Insert ServerScript anywhere in Explorer. It remains inactive until it has a valid server execution ancestry. | | `Instance.new()` | supported | A runtime-created ServerScript starts once after it is enabled and enters Workspace or ServerScriptService. | | `Enabled` | boolean | Read/write hierarchy property. Enabling an unstarted ServerScript in a valid server context allows it to start on the next runtime script scan. | | `script global` | available | Inside the script, script refers to that ServerScript instance. | > **Note:** `ServerScript` uses the public creator API and does not receive the privileged permissions of `CoreScript` or `CoreLocalScript`. ServerScripts can use server-only services such as `ServerScriptService` and `ServerStorage`. `UserInputService`, `RunService.RenderStepped`, `Players.LocalPlayer` and `workspace.CurrentCamera` are not available in the public server context. ## Example ```luau script.Parent.Touched:Connect(function(hit) local humanoid = hit.Parent and hit.Parent:FindFirstChildOfClass("Humanoid") if humanoid then humanoid.Health = 0 end end) ``` ## Public API - [What public scripts can do](https://docs.glorpia.com/scripting/public-scripts.md) — Supported hierarchy, physics, sound, service and replication behavior. - [BasePart](https://docs.glorpia.com/instances/basepart.md) — Physical properties shared by Part and SpawnLocation. - [BasePart.Touched](https://docs.glorpia.com/scripting/events/touched.md) — Authoritative contact event behavior. - [ServerScriptService](https://docs.glorpia.com/services/serverscriptservice.md) — Server-side container where enabled ServerScripts start once when discovered. - [RemoteEvent](https://docs.glorpia.com/instances/remoteevent.md) — Communicate with LocalScripts. - [RemoteFunction](https://docs.glorpia.com/instances/remotefunction.md) — Request/response communication with LocalScripts. - [BasicSound](https://docs.glorpia.com/instances/basicsound.md) — Global and spatial sound playback. --- Source: https://docs.glorpia.com/instances/spawnlocation Markdown: https://docs.glorpia.com/instances/spawnlocation.md --- title: "SpawnLocation" description: "A BasePart that the runtime can use as the player's character spawn point." canonical: "https://docs.glorpia.com/instances/spawnlocation" markdown: "https://docs.glorpia.com/instances/spawnlocation.md" --- # SpawnLocation A BasePart that the runtime can use as the player's character spawn point. **Category:** Instances ## Inheritance `SpawnLocation` shares the complete `BasePart` property set. - [BasePart](https://docs.glorpia.com/instances/basepart.md) — See the shared transform, shape, render and physics properties. ## Defaults when created by script | Name | Type | Description | | --- | --- | --- | | `Size` | Vector3 | 6, 1, 6 | | `Colour` | Colour3 | Green spawn colour. | | `Shape` | Enum.PartShape | Block | | `Anchored` | boolean | true | | `CanCollide` | boolean | true | ## Example: Create A Spawn Pad ```luau local spawn = Instance.new("SpawnLocation") spawn.Name = "MainSpawn" spawn.Position = Vector3.new(0, 2, 0) spawn.Size = Vector3.new(8, 1, 8) spawn.Bevel = 0.2 spawn.Parent = workspace ``` > **Note:** Glorpia chooses a SpawnLocation from Workspace when spawning the local character. --- Source: https://docs.glorpia.com/instances/startercharacterscripts Markdown: https://docs.glorpia.com/instances/startercharacterscripts.md --- title: "StarterCharacterScripts" description: "A StarterPlayer template container copied into each spawned character." canonical: "https://docs.glorpia.com/instances/startercharacterscripts" markdown: "https://docs.glorpia.com/instances/startercharacterscripts.md" --- # StarterCharacterScripts A StarterPlayer template container copied into each spawned character. **Category:** Instances ## Execution LocalScripts stored here do not execute from the template. Each time a character is spawned, the hierarchy is cloned into that character. LocalScript copies inside the local Player's character then start in that client runtime. When the character respawns, new script clones receive new runtime Instance IDs and start once for that new character. > **Note:** Character LocalScripts can use client APIs and BasePart.Touched. Their ordinary property changes remain local unless explicitly sent to the server through a remote. ## Related - [StarterPlayer](https://docs.glorpia.com/services/starterplayer.md) — Parent service for character and player script templates. - [LocalScript](https://docs.glorpia.com/instances/localscript.md) — Client script runtime and permissions. - [BasePart.Touched](https://docs.glorpia.com/scripting/events/touched.md) — Client and server contact event behaviour. --- Source: https://docs.glorpia.com/instances/starterplayerscripts Markdown: https://docs.glorpia.com/instances/starterplayerscripts.md --- title: "StarterPlayerScripts" description: "A StarterPlayer template container copied into each Player's PlayerScripts." canonical: "https://docs.glorpia.com/instances/starterplayerscripts" markdown: "https://docs.glorpia.com/instances/starterplayerscripts.md" --- # StarterPlayerScripts A StarterPlayer template container copied into each Player's PlayerScripts. **Category:** Instances ## Execution LocalScripts stored here are templates and do not execute from StarterPlayerScripts. When a Player is created, the hierarchy is copied into that Player's `PlayerScripts`; the local Player's cloned LocalScripts then run on that client. > **Note:** Editing or inserting hierarchy objects here changes the template for future runtime copies. ## Related - [StarterPlayer](https://docs.glorpia.com/services/starterplayer.md) — Parent service for player and character script templates. - [PlayerScripts](https://docs.glorpia.com/instances/playerscripts.md) — Runtime clone destination. - [StarterCharacterScripts](https://docs.glorpia.com/instances/startercharacterscripts.md) — Template copied into spawned characters. --- Source: https://docs.glorpia.com/instances/stringvalue Markdown: https://docs.glorpia.com/instances/stringvalue.md --- title: "StringValue" description: "Stores text." canonical: "https://docs.glorpia.com/instances/stringvalue" markdown: "https://docs.glorpia.com/instances/stringvalue.md" --- # StringValue Stores text. **Category:** Instances / ValueBase ## Inheritance `StringValue` is a `ValueBase` class and inherits the shared hierarchy API from `Instance`. ## Members | Name | Type | Description | | --- | --- | --- | | `Value` | string | The value stored by this instance. | | `Changed` | signal | Fires when Value changes and passes the new value. | ## Example ```luau local value = Instance.new("StringValue") value.Name = "ExampleValue" value.Value = "Hello Glorpia" value.Parent = workspace value.Changed:Connect(function(newValue) print(newValue) end) ``` ## Related - [ValueBase](https://docs.glorpia.com/instances/valuebase.md) — Shared Value and Changed members for value classes. - [Instances](https://docs.glorpia.com/instances.md) — Browse the complete Glorpia class reference. --- Source: https://docs.glorpia.com/instances/surfacegui Markdown: https://docs.glorpia.com/instances/surfacegui.md --- title: "SurfaceGui" description: "A GUI container rendered onto a selected face of a Part or SpawnLocation." canonical: "https://docs.glorpia.com/instances/surfacegui" markdown: "https://docs.glorpia.com/instances/surfacegui.md" --- # SurfaceGui A GUI container rendered onto a selected face of a Part or SpawnLocation. **Category:** Instances ## Properties | Name | Type | Description | | --- | --- | --- | | `Enabled` | boolean | Controls whether the SurfaceGui renders and receives GUI input. Default: true. | | `AlwaysOnTop` | boolean | When true, draws above world geometry. Default: false. | | `AbsoluteSize` | Vector2 | Read-only logical pixel size derived from the selected part face and PixelsPerStud. | | `Face` | Enum.NormalId | Part face used by the GUI. Default: Enum.NormalId.Front. | | `PixelsPerStud` | number | Render density in logical pixels per stud on the selected face. Default: 100. | | `MaxDistance` | number | Maximum camera distance at which the GUI renders. Default: 1000. | ## Hierarchy and rendering A SurfaceGui is active when directly parented to a `Part` or `SpawnLocation` in Workspace. It follows that part's transform and selected face. `AbsoluteSize` is calculated from the selected face dimensions multiplied by `PixelsPerStud`. SurfaceGui has no authored CanvasSize. A density of 100 PixelsPerStud is the authored pixel baseline. Increasing PixelsPerStud raises render density while fixed pixel offsets, border widths, corner offsets and non-scaled TextSize retain the same physical size on the part. TextScaled also uses the higher-density canvas instead of shrinking at high PixelsPerStud values. Frame, TextLabel and TextButton visuals use the shared Skia 2D renderer; the finished layers are perspective-correctly sampled on angled part faces. UIBlur can blur the local 3D backdrop behind a child GUI object while the foreground remains sharp. TextButton pointer signals use the same density-aware projected layout for hit testing. > **Note:** Hierarchy parenting is unrestricted. A SurfaceGui in another context stays in the hierarchy but does not render. With `AlwaysOnTop = false`, it participates in 3D BlurEffect/ColourCorrection; with `AlwaysOnTop = true`, it is composited afterward and bypasses those effects while remaining below ScreenGui. ## Example ```luau local gui = Instance.new("SurfaceGui") gui.Face = Enum.NormalId.Front gui.PixelsPerStud = 100 print(gui.AbsoluteSize) gui.MaxDistance = 150 gui.Parent = workspace.Sign local label = Instance.new("TextLabel") label.Size = UDim2.new(1, 0, 1, 0) label.TextScaled = true label.Text = "Glorpia" label.Parent = gui ``` ## Related - [ScreenGui](https://docs.glorpia.com/instances/screengui.md) — Screen-space GUI container. - [BillboardGui](https://docs.glorpia.com/instances/billboardgui.md) — Camera-facing world-space GUI container. - [TextButton](https://docs.glorpia.com/instances/textbutton.md) — Interactive text GUI object. --- Source: https://docs.glorpia.com/instances/textbutton Markdown: https://docs.glorpia.com/instances/textbutton.md --- title: "TextButton" description: "A clickable text GUI object for client-side interfaces inside ScreenGui, SurfaceGui, BillboardGui and other valid GUI containers." canonical: "https://docs.glorpia.com/instances/textbutton" markdown: "https://docs.glorpia.com/instances/textbutton.md" --- # TextButton A clickable text GUI object for client-side interfaces inside ScreenGui, SurfaceGui, BillboardGui and other valid GUI containers. **Category:** Instances ## Properties | Name | Type | Description | | --- | --- | --- | | `Size` | UDim2 | Default: UDim2.new(0, 100, 0, 50). | | `Position` | UDim2 | Position relative to the parent GUI. Default: UDim2.new(0, 0, 0, 0). | | `AnchorPoint` | Vector2 | Point inside the TextButton that Position is anchored to. Default: Vector2.new(0, 0). | | `BackgroundColour3` | Colour3 | Background colour. Default: white. BackgroundColor3 is an alias. | | `BackgroundTransparency` | number | Background transparency from 0 through 1. Default: 0. | | `Text` | string | Displayed text. Default: TextButton. | | `TextSize` | number | Text size in pixels. Default: 14. | | `TextFits` | boolean | Read-only. True when the current rendered text fits inside the TextButton bounds. | | `TextScaled` | boolean | Scales text to the largest size that still fits inside the button. Enabling TextScaled also enables TextWrapped. Default: false. | | `TextWrapped` | boolean | Wraps text inside the button. Disabling TextWrapped also disables TextScaled. Default: false. | | `TextTruncate` | Enum.TextTruncate | Controls text truncation. Default: Enum.TextTruncate.None. | | `TextDirection` | Enum.TextDirection | Controls text flow direction. Default: Enum.TextDirection.Auto. | | `TextXAlignment` | Enum.TextXAlignment | Horizontal text alignment. Default: Enum.TextXAlignment.Center. | | `TextYAlignment` | Enum.TextYAlignment | Vertical text alignment. Default: Enum.TextYAlignment.Center. | | `TextTransparency` | number | Text transparency from 0 through 1. Default: 0. | | `TextColour3` | Colour3 | Text colour. Default: black. TextColor3 is an alias. | | `Font` | Enum.Font | Font family. Uses the same Enum.Font families as TextLabel. Default: Enum.Font.Metropolis. | | `FontStyle` | Enum.FontStyle | Font style supported by the selected Font. Default: Enum.FontStyle.Normal. | | `Visible` | boolean | Controls whether the TextButton is drawn. Default: true. | | `Rotation` | number | Clockwise rotation in degrees around the button centre. Default: 0. | | `ZIndex` | number | Sibling-scoped GUI draw order. Higher values draw above sibling GUI objects. Descendants remain inside the parent stacking context. Default: 1. | | `ClipDescendants` | boolean | Clips GUI descendants to the TextButton bounds. Default: false. | | `Interactable` | boolean | Controls whether the button participates in pointer interaction. Default: true. | | `Modal` | boolean | When true, right-click camera movement is allowed through this GUI object while the pointer is over it. Default: false. | | `BorderColour3` | Colour3 | Border colour. Default: black. BorderColor3 is an alias. | | `BorderMode` | Enum.BorderMode | Border placement. Default: Enum.BorderMode.Outline. | | `BorderSizePixel` | number | Border thickness in pixels. Default: 0. Disabled in Studio while a UICorner is parented to the TextButton. | | `Active` | boolean | Controls whether the button accepts pointer input. Default: true. | | `AutoButtonColour` | boolean | When true, automatic hover and pressed colour feedback is applied. AutoButtonColor is an alias. Default: true. | | `AutoButtonColour3` | Colour3 | Colour multiplier used by automatic hover and pressed feedback. AutoButtonColor3 is an alias. Default: white. | ## Signals | Name | Type | Description | | --- | --- | --- | | `Activated` | signal | Fires after a completed activation. | | `MouseButton1Click` | signal | Fires when primary input is pressed and released over the same active TextButton. | | `MouseButton1Down` | signal | Fires when primary input begins over the active TextButton. | | `MouseButton1Up` | signal | Fires when the primary input that began on the button is released. | > **Note:** TextButton pointer signals are client input. Public creator scripts connect to them from a LocalScript. Studio autocomplete inserts button signal members as `:Connect()` calls. ## Example ```luau local button = Instance.new("TextButton") button.Size = UDim2.new(0, 160, 0, 48) button.AnchorPoint = Vector2.new(0, 0) button.Text = "Play" button.TextScaled = true button.TextXAlignment = Enum.TextXAlignment.Center button.TextYAlignment = Enum.TextYAlignment.Center button.BackgroundColour3 = Colour3.fromRGB(88, 255, 106) button.TextColour3 = Colour3.fromRGB(0, 0, 0) button.TextTransparency = 0 button.Active = true button.Interactable = true button.AutoButtonColour3 = Colour3.fromRGB(255, 255, 255) button.Parent = workspace.Part.BillboardGui button.MouseButton1Click:Connect(function() print("Clicked") end) ``` ## Related - [TextLabel](https://docs.glorpia.com/instances/textlabel.md) — Non-interactive text GUI object. - [UIGradient](https://docs.glorpia.com/instances/uigradient.md) — Applies a colour and transparency gradient to a GUI object. - [UICorner](https://docs.glorpia.com/instances/uicorner.md) — Rounds the button background corners. - [UIBlur](https://docs.glorpia.com/instances/uiblur.md) — Blurs the 3D backdrop behind the button. - [BillboardGui](https://docs.glorpia.com/instances/billboardgui.md) — World-space GUI container. --- Source: https://docs.glorpia.com/instances/textlabel Markdown: https://docs.glorpia.com/instances/textlabel.md --- title: "TextLabel" description: "A GUI object that draws text in Glorpia GUI containers with selectable font families and styles." canonical: "https://docs.glorpia.com/instances/textlabel" markdown: "https://docs.glorpia.com/instances/textlabel.md" --- # TextLabel A GUI object that draws text in Glorpia GUI containers with selectable font families and styles. **Category:** Instances ## Defaults and properties | Name | Type | Description | | --- | --- | --- | | `Size` | UDim2 | Default: UDim2.new(0, 100, 0, 50). | | `Position` | UDim2 | Position relative to the parent GUI. Default: UDim2.new(0, 0, 0, 0). | | `AnchorPoint` | Vector2 | Point inside the TextLabel that Position is anchored to. Default: Vector2.new(0, 0). | | `BackgroundColour3` | Colour3 | Background colour. Default: white. BackgroundColor3 remains available as a compatibility alias. | | `BackgroundTransparency` | number | Background transparency from 0 through 1. Default: 0. | | `Text` | string | Displayed text. Default: TextLabel. | | `TextSize` | number | Text size in pixels. Default: 14. | | `TextFits` | boolean | Read-only. True when the current rendered text fits inside the TextLabel bounds. | | `TextScaled` | boolean | Scales text to the largest size that still fits inside the TextLabel. Enabling TextScaled also enables TextWrapped. Default: false. | | `TextWrapped` | boolean | Wraps text onto multiple lines inside the TextLabel. Disabling TextWrapped also disables TextScaled. Default: false. | | `TextTruncate` | Enum.TextTruncate | Controls how text that does not fit is truncated. Default: Enum.TextTruncate.None. | | `TextDirection` | Enum.TextDirection | Controls text flow direction. Auto detects direction from the text. Default: Enum.TextDirection.Auto. | | `TextXAlignment` | Enum.TextXAlignment | Horizontal text alignment. Default: Enum.TextXAlignment.Center. | | `TextYAlignment` | Enum.TextYAlignment | Vertical text alignment. Default: Enum.TextYAlignment.Center. | | `TextTransparency` | number | Text transparency from 0 through 1. Default: 0. | | `TextColour3` | Colour3 | Text colour. Default: black. TextColor3 remains available as a compatibility alias. | | `Font` | Enum.Font | Font family. Default: Enum.Font.Metropolis. | | `FontStyle` | Enum.FontStyle | Font style supported by the selected Font. Default: Enum.FontStyle.Normal. | | `Visible` | boolean | Controls whether the TextLabel is drawn. Default: true. | | `Rotation` | number | Clockwise rotation in degrees around the label centre. Default: 0. | | `ZIndex` | number | Sibling-scoped GUI draw order. Higher values draw above sibling GUI objects. Descendants remain inside the parent stacking context. Default: 1. | | `ClipDescendants` | boolean | Clips GUI descendants to the TextLabel bounds. Default: false. | | `Interactable` | boolean | Controls whether the GUI object can participate in GUI interaction. Default: true. | | `Modal` | boolean | When true, right-click camera movement is allowed through this GUI object while the pointer is over it. Default: false. | | `BorderColour3` | Colour3 | Border colour. Default: black. BorderColor3 is a compatibility alias. | | `BorderMode` | Enum.BorderMode | Border placement. Default: Enum.BorderMode.Outline. | | `BorderSizePixel` | number | Border thickness in pixels. Default: 0. Disabled in Studio while a UICorner is parented to the TextLabel. | > **Note:** The Font picker lists every supported family. Families with Studio preview font data are previewed in that face; raster-backed families use the Studio UI fallback in the picker. The FontStyle picker only lists styles that exist for the selected family. Scripts use `Enum.Font` and `Enum.FontStyle`. > **Note:** Text layout metrics currently target printable ASCII characters U+0020 through U+007E. Skia can draw additional glyphs present in the selected font, but those characters use fallback layout metrics until full Unicode shaping is added. > **Note:** `TextScaled = true` automatically enables `TextWrapped`. Setting `TextWrapped = false` automatically disables `TextScaled`, so TextScaled cannot remain enabled without wrapping. ## Font families | Name | Type | Description | | --- | --- | --- | | `Enum.Font.Metropolis` | Enum.Font | Metropolis. Default family. | | `Enum.Font.Arima` | Enum.Font | Arima. | | `Enum.Font.Arimo` | Enum.Font | Arimo. | | `Enum.Font.Audiowide` | Enum.Font | Audiowide. | | `Enum.Font.Basic` | Enum.Font | Basic. | | `Enum.Font.Cantarell` | Enum.Font | Cantarell. | | `Enum.Font.Cinzel` | Enum.Font | Cinzel. | | `Enum.Font.ComicRelief` | Enum.Font | Comic Relief. | | `Enum.Font.Commissioner` | Enum.Font | Commissioner. | | `Enum.Font.Creepster` | Enum.Font | Creepster. | | `Enum.Font.EagleLake` | Enum.Font | Eagle Lake. | | `Enum.Font.Eater` | Enum.Font | Eater. | | `Enum.Font.Flavors` | Enum.Font | Flavors. | | `Enum.Font.FontdinerSwanky` | Enum.Font | Fontdiner Swanky. | | `Enum.Font.GrandHotel` | Enum.Font | Grand Hotel. | | `Enum.Font.HennyPenny` | Enum.Font | Henny Penny. | | `Enum.Font.IBMPlexMono` | Enum.Font | IBM Plex Mono. | | `Enum.Font.JollyLodger` | Enum.Font | Jolly Lodger. | | `Enum.Font.JotiOne` | Enum.Font | Joti One. | | `Enum.Font.Knewave` | Enum.Font | Knewave. | | `Enum.Font.PasseroOne` | Enum.Font | Passero One. | | `Enum.Font.Rowdies` | Enum.Font | Rowdies. | | `Enum.Font.RubikDistressed` | Enum.Font | Rubik Distressed. | | `Enum.Font.ShortStack` | Enum.Font | Short Stack. | | `Enum.Font.Silkscreen` | Enum.Font | Silkscreen. | | `Enum.Font.Bytesized` | Enum.Font | Bytesized. | | `Enum.Font.DynaPuff` | Enum.Font | DynaPuff. | | `Enum.Font.FiraCode` | Enum.Font | Fira Code. | | `Enum.Font.LobsterTwo` | Enum.Font | Lobster Two. | | `Enum.Font.Matemasie` | Enum.Font | Matemasie. | | `Enum.Font.Miltonian` | Enum.Font | Miltonian. | | `Enum.Font.Monoton` | Enum.Font | Monoton. | | `Enum.Font.Montserrat` | Enum.Font | Montserrat. | | `Enum.Font.Oswald` | Enum.Font | Oswald. | | `Enum.Font.PermanentMarker` | Enum.Font | Permanent Marker. | | `Enum.Font.PressStart2P` | Enum.Font | Press Start 2P. | | `Enum.Font.Rubik` | Enum.Font | Rubik. | | `Enum.Font.RubikWetPaint` | Enum.Font | Rubik Wet Paint. | | `Enum.Font.Rye` | Enum.Font | Rye. | | `Enum.Font.Tiny5` | Enum.Font | Tiny5. | | `Enum.Font.AmaticSC` | Enum.Font | Amatic SC. | | `Enum.Font.Bangers` | Enum.Font | Bangers. | | `Enum.Font.ComicNeue` | Enum.Font | Comic Neue. | | `Enum.Font.DenkOne` | Enum.Font | Denk One. | | `Enum.Font.Inconsolata` | Enum.Font | Inconsolata. | | `Enum.Font.IndieFlower` | Enum.Font | Indie Flower. | | `Enum.Font.JosefinSans` | Enum.Font | Josefin Sans. | | `Enum.Font.Jura` | Enum.Font | Jura. | | `Enum.Font.Kalam` | Enum.Font | Kalam. | | `Enum.Font.Merriweather` | Enum.Font | Merriweather. | | `Enum.Font.Michroma` | Enum.Font | Michroma. | | `Enum.Font.Nunito` | Enum.Font | Nunito. | | `Enum.Font.PatrickHand` | Enum.Font | Patrick Hand. | | `Enum.Font.Roboto` | Enum.Font | Roboto. | | `Enum.Font.RobotoCondensed` | Enum.Font | Roboto Condensed. | | `Enum.Font.RobotoMono` | Enum.Font | Roboto Mono. | | `Enum.Font.Sarpanch` | Enum.Font | Sarpanch. | | `Enum.Font.SourceSans3` | Enum.Font | Source Sans 3. | | `Enum.Font.SpecialElite` | Enum.Font | Special Elite. | | `Enum.Font.TitilliumWeb` | Enum.Font | Titillium Web. | | `Enum.Font.Ubuntu` | Enum.Font | Ubuntu. | ## Font styles `Enum.FontStyle` includes Thin, ThinItalic, ExtraLight, ExtraLightItalic, Light, LightItalic, Normal, Italic, Medium, MediumItalic, SemiBold, SemiBoldItalic, Bold, BoldItalic, ExtraBold, ExtraBoldItalic, Black and BlackItalic. Each family exposes only the styles included with that font. > **Note:** Assigning a Font automatically falls back to `Enum.FontStyle.Normal` if the previous style is not supported by the new family. ## Styles supported by each family | Name | Type | Description | | --- | --- | --- | | `Metropolis` | Thin, ThinItalic, ExtraLight, ExtraLightItalic, Light, LightItalic, Normal, Italic, Medium, MediumItalic, SemiBold, SemiBoldItalic, Bold, BoldItalic, ExtraBold, ExtraBoldItalic, Black, BlackItalic | | | `Arima` | Thin, ExtraLight, Light, Normal, Medium, SemiBold, Bold | | | `Arimo` | Normal, Italic, Medium, MediumItalic, SemiBold, SemiBoldItalic, Bold, BoldItalic | | | `Audiowide` | Normal | | | `Basic` | Normal | | | `Cantarell` | Normal, Italic, Bold, BoldItalic | | | `Cinzel` | Normal, Medium, SemiBold, Bold, ExtraBold, Black | | | `Comic Relief` | Normal, Bold | | | `Commissioner` | Thin, ExtraLight, Light, Normal, Medium, SemiBold, Bold, ExtraBold, Black | | | `Creepster` | Normal | | | `Eagle Lake` | Normal | | | `Eater` | Normal | | | `Flavors` | Normal | | | `Fontdiner Swanky` | Normal | | | `Grand Hotel` | Normal | | | `Henny Penny` | Normal | | | `IBM Plex Mono` | Thin, ThinItalic, ExtraLight, ExtraLightItalic, Light, LightItalic, Normal, Italic, Medium, MediumItalic, SemiBold, SemiBoldItalic, Bold, BoldItalic | | | `Jolly Lodger` | Normal | | | `Joti One` | Normal | | | `Knewave` | Normal | | | `Passero One` | Normal | | | `Rowdies` | Light, Normal, Bold | | | `Rubik Distressed` | Normal | | | `Short Stack` | Normal | | | `Silkscreen` | Normal, Bold | | | `Bytesized` | Normal | | | `DynaPuff` | Normal, Medium, SemiBold, Bold | | | `Fira Code` | Light, Normal, Medium, SemiBold, Bold | | | `Lobster Two` | Normal, Italic, Bold, BoldItalic | | | `Matemasie` | Normal | | | `Miltonian` | Normal | | | `Monoton` | Normal | | | `Montserrat` | Thin, ThinItalic, ExtraLight, ExtraLightItalic, Light, LightItalic, Normal, Italic, Medium, MediumItalic, SemiBold, SemiBoldItalic, Bold, BoldItalic, ExtraBold, ExtraBoldItalic, Black, BlackItalic | | | `Oswald` | ExtraLight, Light, Normal, Medium, SemiBold, Bold | | | `Permanent Marker` | Normal | | | `Press Start 2P` | Normal | | | `Rubik` | Light, LightItalic, Normal, Italic, Medium, MediumItalic, SemiBold, SemiBoldItalic, Bold, BoldItalic, ExtraBold, ExtraBoldItalic, Black, BlackItalic | | | `Rubik Wet Paint` | Normal | | | `Rye` | Normal | | | `Tiny5` | Normal | | | `Amatic SC` | Normal, Bold | | | `Bangers` | Normal | | | `Comic Neue` | Light, LightItalic, Normal, Italic, Bold, BoldItalic | | | `Denk One` | Normal | | | `Inconsolata` | ExtraLight, Light, Normal, Medium, SemiBold, Bold, ExtraBold, Black | | | `Indie Flower` | Normal | | | `Josefin Sans` | Thin, ThinItalic, ExtraLight, ExtraLightItalic, Light, LightItalic, Normal, Italic, Medium, MediumItalic, SemiBold, SemiBoldItalic, Bold, BoldItalic | | | `Jura` | Light, Normal, Medium, SemiBold, Bold | | | `Kalam` | Light, Normal, Bold | | | `Merriweather` | Light, LightItalic, Normal, Italic, Medium, MediumItalic, SemiBold, SemiBoldItalic, Bold, BoldItalic, ExtraBold, ExtraBoldItalic, Black, BlackItalic | | | `Michroma` | Normal | | | `Nunito` | ExtraLight, ExtraLightItalic, Light, LightItalic, Normal, Italic, Medium, MediumItalic, SemiBold, SemiBoldItalic, Bold, BoldItalic, ExtraBold, ExtraBoldItalic, Black, BlackItalic | | | `Patrick Hand` | Normal | | | `Roboto` | Thin, ThinItalic, ExtraLight, ExtraLightItalic, Light, LightItalic, Normal, Italic, Medium, MediumItalic, SemiBold, SemiBoldItalic, Bold, BoldItalic, ExtraBold, ExtraBoldItalic, Black, BlackItalic | | | `Roboto Condensed` | Thin, ThinItalic, ExtraLight, ExtraLightItalic, Light, LightItalic, Normal, Italic, Medium, MediumItalic, SemiBold, SemiBoldItalic, Bold, BoldItalic, ExtraBold, ExtraBoldItalic, Black, BlackItalic | | | `Roboto Mono` | Thin, ThinItalic, ExtraLight, ExtraLightItalic, Light, LightItalic, Normal, Italic, Medium, MediumItalic, SemiBold, SemiBoldItalic, Bold, BoldItalic | | | `Sarpanch` | Normal, Medium, SemiBold, Bold, ExtraBold, Black | | | `Source Sans 3` | ExtraLight, ExtraLightItalic, Light, LightItalic, Normal, Italic, Medium, MediumItalic, SemiBold, SemiBoldItalic, Bold, BoldItalic, ExtraBold, ExtraBoldItalic, Black, BlackItalic | | | `Special Elite` | Normal | | | `Titillium Web` | ExtraLight, ExtraLightItalic, Light, LightItalic, Normal, Italic, SemiBold, SemiBoldItalic, Bold, BoldItalic, Black | | | `Ubuntu` | Light, LightItalic, Normal, Italic, Medium, MediumItalic, Bold, BoldItalic | | ## Example ```luau local label = Instance.new("TextLabel") label.Size = UDim2.new(0, 100, 0, 50) label.AnchorPoint = Vector2.new(0, 0) label.Text = "TextLabel" label.TextSize = 14 label.TextWrapped = true label.TextScaled = false label.TextTruncate = Enum.TextTruncate.AtEnd label.TextDirection = Enum.TextDirection.Auto label.TextXAlignment = Enum.TextXAlignment.Center label.TextYAlignment = Enum.TextYAlignment.Center print(label.TextFits) label.BackgroundColour3 = Colour3.fromRGB(255, 255, 255) label.TextColour3 = Colour3.fromRGB(0, 0, 0) label.TextTransparency = 0 label.Font = Enum.Font.Metropolis label.FontStyle = Enum.FontStyle.Bold label.BorderColour3 = Colour3.fromRGB(0, 0, 0) label.BorderMode = Enum.BorderMode.Outline label.BorderSizePixel = 0 label.Visible = true label.Rotation = 0 label.ZIndex = 1 label.ClipDescendants = false label.Interactable = true label.Parent = workspace.Part.BillboardGui ``` ## Related - [BillboardGui](https://docs.glorpia.com/instances/billboardgui.md) — World-space GUI container. - [Frame](https://docs.glorpia.com/instances/frame.md) — GUI container and background. - [UICorner](https://docs.glorpia.com/instances/uicorner.md) — Rounds TextLabel corners. - [UIBlur](https://docs.glorpia.com/instances/uiblur.md) — Blurs the 3D backdrop behind the TextLabel. - [Text and font enums](https://docs.glorpia.com/scripting/enums.md) — Font, truncation, direction and text alignment enums. --- Source: https://docs.glorpia.com/instances/uiblur Markdown: https://docs.glorpia.com/instances/uiblur.md --- title: "UIBlur" description: "Blurs the rendered 3D scene behind its parent GUI object while leaving the parent GUI foreground sharp." canonical: "https://docs.glorpia.com/instances/uiblur" markdown: "https://docs.glorpia.com/instances/uiblur.md" --- # UIBlur Blurs the rendered 3D scene behind its parent GUI object while leaving the parent GUI foreground sharp. **Category:** Instances ## Properties | Name | Type | Description | | --- | --- | --- | | `Colour` | Colour3 | Tint applied to the blurred backdrop. Color is an alias. Default: Colour3.fromRGB(255, 255, 255). | | `Enabled` | boolean | Controls whether the backdrop blur is rendered. Default: true. | | `Size` | number | Gaussian backdrop blur amount from 0 through 256. Default: 32. A value of 0 keeps the UIBlur region active but shows the unblurred 3D backdrop. | | `Transparency` | number | Blends the blur effect back toward the unblurred scene. Range: 0 through 1. Default: 0. | > **Note:** UIBlur affects rendering only while directly parented to a `Frame`, `TextLabel` or `TextButton`. The blur is clipped to the parent bounds and follows its UICorner radii. > **Note:** The 3D scene behind the parent is filtered before the parent's Skia-rendered background, gradient and text are composited, so the GUI foreground remains crisp. With `Size = 0`, the region samples the original scene instead; this can create a clear area through a Lighting `BlurEffect`. ## Example ```luau local frame = Instance.new("Frame") frame.Size = UDim2.new(0, 320, 0, 160) frame.BackgroundTransparency = 0.25 frame.Parent = game:GetService("StarterGui").ScreenGui local blur = Instance.new("UIBlur") blur.Size = 48 blur.Colour = Colour3.fromRGB(255, 255, 255) blur.Transparency = 0 blur.Enabled = true blur.Parent = frame ``` ## Related - [Frame](https://docs.glorpia.com/instances/frame.md) — Rectangular GUI object that can host UIBlur. - [TextLabel](https://docs.glorpia.com/instances/textlabel.md) — Text GUI object that can host UIBlur. - [TextButton](https://docs.glorpia.com/instances/textbutton.md) — Clickable GUI object that can host UIBlur. - [UICorner](https://docs.glorpia.com/instances/uicorner.md) — Rounds the same parent bounds used by UIBlur. - [BlurEffect](https://docs.glorpia.com/instances/blureffect.md) — Lighting effect that blurs the complete rendered 3D world. --- Source: https://docs.glorpia.com/instances/uicorner Markdown: https://docs.glorpia.com/instances/uicorner.md --- title: "UICorner" description: "Rounds the background corners of a Frame, TextLabel or TextButton." canonical: "https://docs.glorpia.com/instances/uicorner" markdown: "https://docs.glorpia.com/instances/uicorner.md" --- # UICorner Rounds the background corners of a Frame, TextLabel or TextButton. **Category:** Instances ## Properties | Name | Type | Description | | --- | --- | --- | | `CornerRadius` | UDim | Sets all four corner radii together. Default: UDim.new(0, 8). | | `BottomLeftRadius` | UDim | Bottom-left corner radius. Default: UDim.new(0, 8). | | `BottomRightRadius` | UDim | Bottom-right corner radius. Default: UDim.new(0, 8). | | `TopLeftRadius` | UDim | Top-left corner radius. Default: UDim.new(0, 8). | | `TopRightRadius` | UDim | Top-right corner radius. Default: UDim.new(0, 8). | > **Note:** Changing `CornerRadius` synchronises all four individual corner properties. Changing an individual corner only changes that corner. > **Note:** Hierarchy parenting is unrestricted. UICorner affects rendering only when it is directly parented to a `Frame`, `TextLabel` or `TextButton`. While active, Studio disables BorderMode and BorderSizePixel for the parent GUI object and the renderer does not draw that border. ## Example ```luau local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, 8) corner.Parent = workspace.Part.BillboardGui.Frame ``` ## Related - [Frame](https://docs.glorpia.com/instances/frame.md) — Rectangular GUI object. - [TextLabel](https://docs.glorpia.com/instances/textlabel.md) — Text GUI object. - [TextButton](https://docs.glorpia.com/instances/textbutton.md) — Clickable text GUI object. - [UDim](https://docs.glorpia.com/scripting/datatypes.md) — Scale and offset datatype used for CornerRadius. --- Source: https://docs.glorpia.com/instances/uigradient Markdown: https://docs.glorpia.com/instances/uigradient.md --- title: "UIGradient" description: "Applies a two-endpoint colour and transparency gradient to its parent GUI object." canonical: "https://docs.glorpia.com/instances/uigradient" markdown: "https://docs.glorpia.com/instances/uigradient.md" --- # UIGradient Applies a two-endpoint colour and transparency gradient to its parent GUI object. **Category:** Instances ## Properties | Name | Type | Description | | --- | --- | --- | | `Colour` | ColourSequence | Two endpoint colours. Color is an alias. Default: white to white. | | `Transparency` | NumberSequence | Two endpoint transparencies from 0 through 1. Default: 0 to 0. | | `Offset` | Vector2 | Moves the gradient across the parent GUI. Each component is clamped from -1 through 1. Default: Vector2.zero. | | `Rotation` | number | Gradient rotation in degrees. Default: 0. | | `Enabled` | boolean | Controls whether the gradient is applied. Default: true. | > **Note:** This UIGradient pass supports two endpoints. `ColorSequence.new` / `ColourSequence.new` and `NumberSequence.new` expose Start and End values rather than arbitrary keypoints. > **Note:** UIGradient affects the parent GUI object's background, border and text rendering. ## Example ```luau local gradient = Instance.new("UIGradient") gradient.Colour = ColourSequence.new( Colour3.fromRGB(88, 255, 106), Colour3.fromRGB(80, 145, 255) ) gradient.Transparency = NumberSequence.new(0, 0.2) gradient.Offset = Vector2.new(0, 0) gradient.Rotation = 35 gradient.Enabled = true gradient.Parent = workspace.Part.BillboardGui.TextButton ``` ## Related - [Frame](https://docs.glorpia.com/instances/frame.md) — Rectangular GUI object. - [TextLabel](https://docs.glorpia.com/instances/textlabel.md) — Text GUI object. - [TextButton](https://docs.glorpia.com/instances/textbutton.md) — Clickable text GUI object. - [Datatypes](https://docs.glorpia.com/scripting/datatypes.md) — ColourSequence, NumberSequence and Vector2. --- Source: https://docs.glorpia.com/instances/uigridlayout Markdown: https://docs.glorpia.com/instances/uigridlayout.md --- title: "UIGridLayout" description: "Automatically arranges sibling GUI objects into evenly sized grid cells." canonical: "https://docs.glorpia.com/instances/uigridlayout" markdown: "https://docs.glorpia.com/instances/uigridlayout.md" --- # UIGridLayout Automatically arranges sibling GUI objects into evenly sized grid cells. **Category:** Instances ## Properties | Name | Type | Description | | --- | --- | --- | | `CellPadding` | UDim2 | Horizontal and vertical spacing between grid cells. Default: UDim2.new(0, 5, 0, 5). | | `CellSize` | UDim2 | Size assigned to each arranged GUI object. Default: UDim2.new(0, 100, 0, 100). | | `FillDirection` | Enum.FillDirection | Axis filled first by the grid. Default: Enum.FillDirection.Horizontal. | | `FillDirectionMaxCells` | number | Maximum cells placed along the fill axis. A value of 0 derives the count from the available parent size. Default: 0. | | `HorizontalAlignment` | Enum.HorizontalAlignment | Horizontal alignment of the complete grid. Default: Enum.HorizontalAlignment.Left. | | `VerticalAlignment` | Enum.VerticalAlignment | Vertical alignment of the complete grid. Default: Enum.VerticalAlignment.Top. | | `StartCorner` | Enum.StartCorner | Corner from which cell placement begins. Default: Enum.StartCorner.TopLeft. | > **Note:** UIGridLayout affects direct visible Frame, ScrollingFrame, TextLabel and TextButton children of its parent. Each arranged child's rendered size is the current CellSize. > **Note:** If more than one layout component is directly parented to the same GUI object, the first UIListLayout or UIGridLayout in that parent's child hierarchy is used. ## Ordering Children are placed in hierarchy order. `FillDirection` controls whether rows or columns fill first, `FillDirectionMaxCells` limits the fill axis, and `StartCorner` changes the corner from which placement begins. ## Example ```luau local frame = Instance.new("Frame") frame.Size = UDim2.new(0, 420, 0, 300) frame.Parent = game:GetService("StarterGui").ScreenGui local grid = Instance.new("UIGridLayout") grid.CellSize = UDim2.new(0, 96, 0, 72) grid.CellPadding = UDim2.new(0, 8, 0, 8) grid.FillDirection = Enum.FillDirection.Horizontal grid.FillDirectionMaxCells = 4 grid.StartCorner = Enum.StartCorner.TopLeft grid.Parent = frame ``` ## Related - [UIListLayout](https://docs.glorpia.com/instances/uilistlayout.md) — Arranges children in a horizontal or vertical list. - [Frame](https://docs.glorpia.com/instances/frame.md) — Rectangular GUI container that can own a layout. - [ScrollingFrame](https://docs.glorpia.com/instances/scrollingframe.md) — Scrollable GUI container that can own a layout. - [Enums](https://docs.glorpia.com/scripting/enums.md) — FillDirection, alignment and StartCorner enum values. --- Source: https://docs.glorpia.com/instances/uilistlayout Markdown: https://docs.glorpia.com/instances/uilistlayout.md --- title: "UIListLayout" description: "Automatically arranges sibling GUI objects in a horizontal or vertical list." canonical: "https://docs.glorpia.com/instances/uilistlayout" markdown: "https://docs.glorpia.com/instances/uilistlayout.md" --- # UIListLayout Automatically arranges sibling GUI objects in a horizontal or vertical list. **Category:** Instances ## Properties | Name | Type | Description | | --- | --- | --- | | `FillDirection` | Enum.FillDirection | Direction in which children are arranged. Default: Enum.FillDirection.Vertical. | | `HorizontalAlignment` | Enum.HorizontalAlignment | Horizontal alignment of the arranged content. Default: Enum.HorizontalAlignment.Left. | | `VerticalAlignment` | Enum.VerticalAlignment | Vertical alignment of the arranged content. Default: Enum.VerticalAlignment.Top. | | `Padding` | UDim | Spacing inserted between adjacent arranged children. Default: UDim.new(0, 0). | > **Note:** UIListLayout affects direct visible Frame, ScrollingFrame, TextLabel and TextButton children of its parent. The layout controls their rendered positions while it is active. > **Note:** If more than one layout component is directly parented to the same GUI object, the first UIListLayout or UIGridLayout in that parent's child hierarchy is used. ## Ordering Children are arranged in their hierarchy order. `FillDirection` selects the main axis. The alignment properties position the arranged group within the parent GUI object's bounds. ## Example ```luau local frame = Instance.new("Frame") frame.Size = UDim2.new(0, 320, 0, 240) frame.Parent = game:GetService("StarterGui").ScreenGui local layout = Instance.new("UIListLayout") layout.FillDirection = Enum.FillDirection.Vertical layout.HorizontalAlignment = Enum.HorizontalAlignment.Center layout.Padding = UDim.new(0, 8) layout.Parent = frame ``` ## Related - [UIGridLayout](https://docs.glorpia.com/instances/uigridlayout.md) — Arranges children into a grid of cells. - [Frame](https://docs.glorpia.com/instances/frame.md) — Rectangular GUI container that can own a layout. - [ScrollingFrame](https://docs.glorpia.com/instances/scrollingframe.md) — Scrollable GUI container that can own a layout. - [Enums](https://docs.glorpia.com/scripting/enums.md) — FillDirection and alignment enum values. --- Source: https://docs.glorpia.com/instances/valuebase Markdown: https://docs.glorpia.com/instances/valuebase.md --- title: "ValueBase" description: "The shared base class for Glorpia hierarchy objects that store one reusable value." canonical: "https://docs.glorpia.com/instances/valuebase" markdown: "https://docs.glorpia.com/instances/valuebase.md" --- # ValueBase The shared base class for Glorpia hierarchy objects that store one reusable value. **Category:** Instances / Base class ## Members | Name | Type | Description | | --- | --- | --- | | `Value` | varies | The value stored by the instance. The exact datatype depends on the concrete class. | | `Changed` | signal | Fires when Value changes and passes the new value. | > **Note:** `IsA("ValueBase")` returns true for every documented concrete value class. ## Concrete classes - [BinaryStringValue](https://docs.glorpia.com/instances/binarystringvalue.md) — Stores binary/string-like data through Luau strings. - [BoolValue](https://docs.glorpia.com/instances/boolvalue.md) — Stores true or false. - [CFrameValue](https://docs.glorpia.com/instances/cframevalue.md) — Stores a position and rotation. - [Colour3Value](https://docs.glorpia.com/instances/colour3value.md) — Stores an RGB colour. - [IntValue](https://docs.glorpia.com/instances/intvalue.md) — Stores a signed integer. - [NumberValue](https://docs.glorpia.com/instances/numbervalue.md) — Stores a number. - [ObjectValue](https://docs.glorpia.com/instances/objectvalue.md) — Stores an Instance reference or nil. - [StringValue](https://docs.glorpia.com/instances/stringvalue.md) — Stores text. - [Vector3Value](https://docs.glorpia.com/instances/vector3value.md) — Stores a three-dimensional vector. ## Persistence and replication Concrete ValueBase instances are normal authored hierarchy objects. Their values are saved in GLRP places and replicated with the rest of the instance tree during playtests and published games. --- Source: https://docs.glorpia.com/instances/values Markdown: https://docs.glorpia.com/instances/values.md --- title: "Value Classes" description: "ValueBase classes store reusable values as normal objects in the Glorpia hierarchy." canonical: "https://docs.glorpia.com/instances/values" markdown: "https://docs.glorpia.com/instances/values.md" --- # Value Classes ValueBase classes store reusable values as normal objects in the Glorpia hierarchy. **Category:** Concepts ## Class reference - [ValueBase](https://docs.glorpia.com/instances/valuebase.md) — Shared Value and Changed API for value classes. - [BinaryStringValue](https://docs.glorpia.com/instances/binarystringvalue.md) — Stores binary/string-like data through Luau strings. - [BoolValue](https://docs.glorpia.com/instances/boolvalue.md) — Stores true or false. - [CFrameValue](https://docs.glorpia.com/instances/cframevalue.md) — Stores a position and rotation. - [Colour3Value](https://docs.glorpia.com/instances/colour3value.md) — Stores an RGB colour. - [IntValue](https://docs.glorpia.com/instances/intvalue.md) — Stores a signed integer. - [NumberValue](https://docs.glorpia.com/instances/numbervalue.md) — Stores a number. - [ObjectValue](https://docs.glorpia.com/instances/objectvalue.md) — Stores an Instance reference or nil. - [StringValue](https://docs.glorpia.com/instances/stringvalue.md) — Stores text. - [Vector3Value](https://docs.glorpia.com/instances/vector3value.md) — Stores a three-dimensional vector. ## Persistence and replication Value classes are normal authored hierarchy objects. Their values are saved in GLRP places and replicated with the rest of the instance tree during playtests and published games. --- Source: https://docs.glorpia.com/instances/vector3value Markdown: https://docs.glorpia.com/instances/vector3value.md --- title: "Vector3Value" description: "Stores a three-dimensional vector." canonical: "https://docs.glorpia.com/instances/vector3value" markdown: "https://docs.glorpia.com/instances/vector3value.md" --- # Vector3Value Stores a three-dimensional vector. **Category:** Instances / ValueBase ## Inheritance `Vector3Value` is a `ValueBase` class and inherits the shared hierarchy API from `Instance`. ## Members | Name | Type | Description | | --- | --- | --- | | `Value` | Vector3 | The value stored by this instance. | | `Changed` | signal | Fires when Value changes and passes the new value. | ## Example ```luau local value = Instance.new("Vector3Value") value.Name = "ExampleValue" value.Value = Vector3.new(1, 2, 3) value.Parent = workspace value.Changed:Connect(function(newValue) print(newValue) end) ``` ## Related - [ValueBase](https://docs.glorpia.com/instances/valuebase.md) — Shared Value and Changed members for value classes. - [Instances](https://docs.glorpia.com/instances.md) — Browse the complete Glorpia class reference. --- Source: https://docs.glorpia.com/reference/gpxl Markdown: https://docs.glorpia.com/reference/gpxl.md --- title: "GPXL and GLRP" description: "GPXL is Glorpia's text data language. GLRP is the binary place-file container used by Studio." canonical: "https://docs.glorpia.com/reference/gpxl" markdown: "https://docs.glorpia.com/reference/gpxl.md" --- # GPXL and GLRP GPXL is Glorpia's text data language. GLRP is the binary place-file container used by Studio. **Category:** Reference / Place format ## GPXL GPXL stands for Glorpia Extensible Language. Raw GPXL source files use the `.gpxl` extension and contain UTF-8 text. Raw GPXL is not compressed or encrypted. GPXL uses named blocks for hierarchy, square-bracket attributes for node metadata, and colon-separated properties for values. Numeric values accept `inf`, `+inf` and `-inf`. These values are preserved for floating-point properties that permit infinity; integer-backed values use the corresponding integer limit. | Name | Type | Description | | --- | --- | --- | | `Block` | Workspace { ... } | Contains properties and child nodes. | | `Attributes` | Part [id=21] | Metadata attached to a node. | | `Property` | name: "Wall" | Named value stored by the node. | | `Array` | size: [8, 8, 1] | Ordered values. | | `Comment` | // text, # text, /* text */ | Ignored by the GPXL text parser. | ```gpxl gpxl [version=1, schema=28, units="studs"] { Workspace { Model [id=20] { name: "House", visible: true, canCollide: true, Part [id=21] { name: "Wall", position: [0, 4, 0], size: [8, 8, 1], colour: [163, 162, 165], transparency: 0, shape: "Block", canCollide: true, anchored: true, } } } Lighting { brightness: 3, clockTime: 14, } ReplicatedStorage { } ServerScriptService { loadStringEnabled: false } ServerStorage { } } ``` ## GLRP place files Glorpia Studio saves normal place files with the `.glrp` extension. A GLRP file contains a GPXL text document as its logical place data. The GPXL payload is compressed and encrypted inside the GLRP binary container. | Name | Type | Description | | --- | --- | --- | | `Extension` | .glrp | Normal Glorpia place file. | | `Container magic` | GLRP | Identifies the current binary GLRP container. | | `Payload` | GPXL UTF-8 | Logical place data before compression. | | `Compression` | zstd | Compresses the GPXL payload. | | `Encryption` | XChaCha20-Poly1305 | Encrypts and authenticates the compressed payload. | | `Salt` | 16 random bytes | Used when deriving the per-file encryption key. | | `Nonce` | 24 random bytes | Generated for each save. | A new random salt and nonce are generated for each GLRP save. > **Note:** GLRP authentication is checked before the encrypted payload is decompressed or parsed. A modified or damaged authenticated payload is rejected. ## Hierarchy Workspace, Players, Lighting, ReplicatedStorage, ServerScriptService, ServerStorage, StarterGui and StarterPlayer are represented as service blocks in GPXL. Models, Folders, post-processing effects and other authored instances are nested under their saved parent. Authored children under Lighting and Players are saved in those services. Runtime Player trees created for a play session are excluded from authored place data. ## Studio support Studio saves and publishes `.glrp` place files. Studio opens and saves `.glrp` place files. Studio's Open and Save workflows do not expose raw `.gpxl` files. ## Versions `version` in the GPXL document is the GPXL language version. `schema` is the Glorpia place-data schema version. The GLRP binary container has its own container version in its authenticated header. --- Source: https://docs.glorpia.com/reference/syntax-colours Markdown: https://docs.glorpia.com/reference/syntax-colours.md --- title: "Script Colours" description: "Syntax highlighting colours used by Glorpia documentation." canonical: "https://docs.glorpia.com/reference/syntax-colours" markdown: "https://docs.glorpia.com/reference/syntax-colours.md" --- # Script Colours Syntax highlighting colours used by Glorpia documentation. **Category:** Reference ## Token palette - **background** — `#111318`: Syntax token - **foreground** — `#D8DEE9`: Normal identifiers and variables - **muted** — `#7E8898`: Secondary editor text - **comment** — `#6F7A8A`: Comments - **keyword** — `#C792EA`: Language control keywords - **function** — `#82AAFF`: Function names and calls - **method** — `#82AAFF`: Methods called with . or : - **builtin** — `#56B6C2`: Built-in functions and libraries - **property** — `#89DDFF`: Object properties - **string** — `#C3E88D`: String literals - **number** — `#F78C6C`: Numeric literals - **boolean** — `#FFCB6B`: true and false - **nil** — `#FFCB6B`: nil - **enum** — `#FFCB6B`: Enum members - **type** — `#89DDFF`: Vector, CFrame and colour datatype names - **class** — `#FFD580`: Class/type labels - **service** — `#F07178`: Service names - **global** — `#F07178`: Engine globals - **operator** — `#89DDFF`: Operators - **punctuation** — `#ABB2BF`: Brackets and separators - **variable** — `#D8DEE9`: Normal variables ## Example ```luau local RunService = game:GetService("RunService") local part = workspace:FindFirstChild("Part") if part then part.Shape = Enum.PartShape.Cylinder part.Colour = Colour3.fromRGB(88, 255, 106) part.Bevel = 0.25 end RunService.RenderStepped:Connect(function(deltaTime) print(deltaTime) end) ``` --- Source: https://docs.glorpia.com/scripting Markdown: https://docs.glorpia.com/scripting.md --- title: "Glorpia Luau" description: "Functions, datatypes and object APIs exposed to Glorpia creator scripts." canonical: "https://docs.glorpia.com/scripting" markdown: "https://docs.glorpia.com/scripting.md" --- # Glorpia Luau Functions, datatypes and object APIs exposed to Glorpia creator scripts. **Category:** Scripting ## Public scripting Glorpia executes creator-authored `ServerScript`s on the authoritative server and creator-authored `LocalScript`s on each client. RemoteEvent and RemoteFunction connect the two public scripting contexts while keeping client-only and server-only APIs separated. - [Public Scripts](https://docs.glorpia.com/scripting/public-scripts.md) — ServerScript and LocalScript execution and permission boundaries. - [ServerScript](https://docs.glorpia.com/instances/serverscript.md) — Authoritative server-side creator code. - [LocalScript](https://docs.glorpia.com/instances/localscript.md) — Client-side creator code. - [RemoteEvent](https://docs.glorpia.com/instances/remoteevent.md) — One-way client/server communication. - [RemoteFunction](https://docs.glorpia.com/instances/remotefunction.md) — Request/response client/server communication. - [BasicSound](https://docs.glorpia.com/instances/basicsound.md) — Control global or spatial audio from Luau. > **Note:** `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](https://docs.glorpia.com/images/studio/script-editor.png) *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 ``` - [Glorpia Runtime](https://docs.glorpia.com/scripting/glorpia.md) — Runtime flags, memory usage, GetEngineMemory() and player FPS reporting. ## 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.new()](https://docs.glorpia.com/scripting/functions/instance-new.md) — Create supported runtime instances including scripts, remotes, Humanoid, Parts and containers. - [RemoteEvent](https://docs.glorpia.com/instances/remoteevent.md) — Send one-way messages across the client/server boundary. - [RemoteFunction](https://docs.glorpia.com/instances/remotefunction.md) — Invoke the opposite side and receive return values. - [game:GetService()](https://docs.glorpia.com/scripting/functions/get-service.md) — Access Workspace, Lighting, RunService, Players, TweenService and other documented services. - [Math & Task Utilities](https://docs.glorpia.com/scripting/utilities.md) — Use math.random(), math.noise() and task.wait(). - [FindFirstChild()](https://docs.glorpia.com/scripting/functions/find-first-child.md) — Safely find a child by name, optionally recursively. - [WaitForChild()](https://docs.glorpia.com/scripting/functions/wait-for-child.md) — Yield until a named direct child exists. - [FindFirstChildWhichIsA()](https://docs.glorpia.com/scripting/functions/find-first-child-which-is-a.md) — Find a child by class or supported base class. - [Clone()](https://docs.glorpia.com/scripting/functions/clone.md) — Deep-copy an Instance tree before parenting the clone. - [Humanoid:TakeDamage()](https://docs.glorpia.com/scripting/functions/take-damage.md) — Reduce authoritative Humanoid health. - [Humanoid:MoveTo()](https://docs.glorpia.com/scripting/functions/move-to.md) — Walk an authored NPC Humanoid toward a world position. - [Humanoid:FollowPlayer()](https://docs.glorpia.com/scripting/functions/follow-player.md) — Continuously follow a Player with an authored NPC Humanoid. - [FindFirstChildOfClass()](https://docs.glorpia.com/scripting/functions/find-first-child-of-class.md) — Find the first direct child with an exact ClassName. - [workspace:Raycast()](https://docs.glorpia.com/scripting/functions/raycast.md) — Cast through the physics world and inspect the first hit. - [PivotTo()](https://docs.glorpia.com/scripting/functions/pivot-to.md) — Move and rotate BaseParts or Models around their pivot. - [Signals & Connect()](https://docs.glorpia.com/scripting/functions/signals.md) — Connect and disconnect runtime signals. - [BasePart.Touched](https://docs.glorpia.com/scripting/events/touched.md) — React to authoritative BasePart contact events. ## 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 - [Instances](https://docs.glorpia.com/instances.md) — Learn what objects exist and which properties each class exposes. - [Services](https://docs.glorpia.com/services.md) — Learn how engine-wide systems and hierarchy storage services are exposed to scripts. - [Datatypes](https://docs.glorpia.com/scripting/datatypes.md) — Vector2, Vector3, CFrame and Color3 / Colour3. - [Enums & Input](https://docs.glorpia.com/scripting/enums.md) — PartShape, KeyCode, UserInputType, UserInputState and MouseBehavior. --- Source: https://docs.glorpia.com/scripting/datatypes Markdown: https://docs.glorpia.com/scripting/datatypes.md --- title: "Datatypes" description: "Math, transform and colour values available to Glorpia scripts." canonical: "https://docs.glorpia.com/scripting/datatypes" markdown: "https://docs.glorpia.com/scripting/datatypes.md" --- # Datatypes Math, transform and colour values available to Glorpia scripts. **Category:** Scripting / API ## Numeric variables Datatype constructors accept numeric variables as well as number literals. This applies to Vector2, Vector3, CFrame and Color3 / Colour3 constructors. Scalar numeric values support `inf` and `-inf`. Number properties store floating-point infinity when the property permits it; integer properties map those values to their positive or negative integer limits. Property-specific ranges still apply to bounded properties. ```luau local x = 12 local y = 5 local z = -3 local red = 88 local green = 255 local blue = 106 local position = Vector3.new(x, y, z) local colour = Colour3.fromRGB(red, green, blue) workspace.Part.Position = position workspace.Part.Colour3 = colour ``` ## UDim / UDim2 | Name | Type | Description | | --- | --- | --- | | `UDim.new(scale, offset)` | constructor | Creates a one-axis GUI scale/offset value. | | `UDim.Scale / Offset` | number | The scale and pixel-offset components. | | `UDim2.new(xScale, xOffset, yScale, yOffset)` | constructor | Creates a two-axis GUI scale/offset value. | | `UDim2.X / Y` | UDim | Horizontal and vertical dimensions. | | `UDim2.Width / Height` | UDim | Aliases for X and Y. | ```luau local size = UDim2.new(0, 100, 0, 50) local radius = UDim.new(0, 8) workspace.Part.BillboardGui.TextLabel.Size = size workspace.Part.BillboardGui.TextLabel.UICorner.CornerRadius = radius ``` ## Vector2 | Name | Type | Description | | --- | --- | --- | | `Vector2.new(x, y)` | constructor | Creates a Vector2. | | `Vector2.zero` | constant | 0, 0. | | `X / Y` | number | Components. | | `Magnitude / Unit` | property | Length and normalised vector. | | `Dot(other)` | method | Dot product. | | `+ / -` | operator | Vector addition and subtraction. | | `* /` | operator | Multiply or divide by a number. | | `==` | operator | Component equality. | ## Vector3 | Name | Type | Description | | --- | --- | --- | | `Vector3.new(x, y, z)` | constructor | Creates a Vector3. | | `Vector3.zero` | constant | 0, 0, 0. | | `Vector3.xAxis / yAxis / zAxis` | constant | Unit axes. | | `X / Y / Z` | number | Components. | | `Magnitude / Unit` | property | Length and normalised vector. | | `Dot(other)` | method | Dot product. | | `Cross(other)` | method | Cross product. | | `Lerp(goal, alpha)` | method | Interpolates toward another Vector3 with alpha clamped from 0 to 1. | | `+ / -` | operator | Vector addition and subtraction. | | `* /` | operator | Multiply or divide by a number. | | `unary -` | operator | Negates all components. | | `==` | operator | Component equality. | ## CFrame | Name | Type | Description | | --- | --- | --- | | `CFrame.new(x, y, z)` | constructor | Creates a translation CFrame. | | `CFrame.Angles(x, y, z)` | constructor | Creates an XYZ rotation CFrame using radians. | | `CFrame.fromEulerAnglesYXZ(x, y, z)` | constructor | Creates a YXZ-ordered rotation CFrame using X, Y and Z rotation angles in radians. | | `CFrame.lookAt(position, target)` | constructor | Creates a CFrame pointing from position toward target. | | `CFrame.identity` | constant | Identity transform. | | `Position / X / Y / Z` | property | Position values. | | `LookVector / RightVector / UpVector` | Vector3 | Orientation basis vectors. | | `Rotation` | CFrame | Rotation-only transform. | | `Lerp(goal, alpha)` | method | Interpolates position and rotation toward another CFrame. | | `Inverse()` | method | Returns the inverse transform. | | `PointToWorldSpace(point)` | method | Transforms a point. | | `VectorToWorldSpace(vector)` | method | Transforms a direction vector. | | `CFrame * CFrame` | operator | Composes two transforms. | | `CFrame * Vector3` | operator | Transforms a point into world space. | | `CFrame + Vector3 / CFrame - Vector3` | operator | Offsets the CFrame position while preserving rotation. | ## Color3 / Colour3 | Name | Type | Description | | --- | --- | --- | | `Color3.new / Colour3.new` | constructor | Creates a colour using 0 to 1 components. | | `Color3.fromRGB / Colour3.fromRGB` | constructor | Creates a colour using 0 to 255 channels. | | `R / G / B` | number | 0 to 1 colour channels. | | `Lerp(goal, alpha)` | method | Interpolates toward another Color3 / Colour3 with alpha clamped from 0 to 1. | | `==` | operator | Compares colour channels. | ```luau local green = Colour3.fromRGB(88, 255, 106) workspace.Part.Colour = green ``` ## ColourSequence / NumberSequence | Name | Type | Description | | --- | --- | --- | | `ColorSequence.new(start, end) / ColourSequence.new(start, end)` | constructor | Creates the two colour endpoints used by UIGradient. | | `ColourSequence.Start / End` | Colour3 | Read-only endpoint colours. | | `NumberSequence.new(start, end)` | constructor | Creates two number endpoints. UIGradient transparency values are from 0 through 1. | | `NumberSequence.Start / End` | number | Read-only endpoint values. | ```luau local colours = ColourSequence.new( Colour3.fromRGB(255, 80, 120), Colour3.fromRGB(80, 145, 255) ) local transparency = NumberSequence.new(0, 0.25) ``` --- Source: https://docs.glorpia.com/scripting/enums Markdown: https://docs.glorpia.com/scripting/enums.md --- title: "Enums & Input" description: "Enum values used by Glorpia scripting and UserInputService." canonical: "https://docs.glorpia.com/scripting/enums" markdown: "https://docs.glorpia.com/scripting/enums.md" --- # Enums & Input Enum values used by Glorpia scripting and UserInputService. **Category:** Scripting / API ## CameraMode | Name | Type | Description | | --- | --- | --- | | `Enum.CameraMode.Classic` | Enum.CameraMode | Normal built-in camera zoom behaviour. | | `Enum.CameraMode.LockFirstPerson` | Enum.CameraMode | Keeps the built-in Custom camera in first person. | ## CameraType | Name | Type | Description | | --- | --- | --- | | `Enum.CameraType.Custom` | Enum.CameraType | Default. The Core CameraScript controls the active Camera. | | `Enum.CameraType.Scriptable` | Enum.CameraType | Built-in camera behaviour is disabled so creator LocalScripts can control the Camera and camera input directly. | ## PartShape | Name | Type | Description | | --- | --- | --- | | `Enum.PartShape.Block` | Enum.PartShape | Rectangular part. | | `Enum.PartShape.Ball` | Enum.PartShape | Spherical or ellipsoid part. | | `Enum.PartShape.Cylinder` | Enum.PartShape | Y-axis cylinder. | | `Enum.PartShape.Wedge` | Enum.PartShape | Triangular-prism wedge with a sloped top face. | | `Enum.PartShape.CornerWedge` | Enum.PartShape | Corner wedge with two perpendicular sloped sides meeting at one raised corner. | ## Font | Name | Type | Description | | --- | --- | --- | | `Enum.Font.Metropolis` | Enum.Font | Metropolis font family and the TextLabel default. | | `Enum.Font.Arima` | Enum.Font | Arima font family. | | `Enum.Font.Arimo` | Enum.Font | Arimo font family. | | `Enum.Font.Audiowide` | Enum.Font | Audiowide font family. | | `Enum.Font.Basic` | Enum.Font | Basic font family. | | `Enum.Font.Cantarell` | Enum.Font | Cantarell font family. | | `Enum.Font.Cinzel` | Enum.Font | Cinzel font family. | | `Enum.Font.ComicRelief` | Enum.Font | Comic Relief font family. | | `Enum.Font.Commissioner` | Enum.Font | Commissioner font family. | | `Enum.Font.Creepster` | Enum.Font | Creepster font family. | | `Enum.Font.EagleLake` | Enum.Font | Eagle Lake font family. | | `Enum.Font.Eater` | Enum.Font | Eater font family. | | `Enum.Font.Flavors` | Enum.Font | Flavors font family. | | `Enum.Font.FontdinerSwanky` | Enum.Font | Fontdiner Swanky font family. | | `Enum.Font.GrandHotel` | Enum.Font | Grand Hotel font family. | | `Enum.Font.HennyPenny` | Enum.Font | Henny Penny font family. | | `Enum.Font.IBMPlexMono` | Enum.Font | IBM Plex Mono font family. | | `Enum.Font.JollyLodger` | Enum.Font | Jolly Lodger font family. | | `Enum.Font.JotiOne` | Enum.Font | Joti One font family. | | `Enum.Font.Knewave` | Enum.Font | Knewave font family. | | `Enum.Font.PasseroOne` | Enum.Font | Passero One font family. | | `Enum.Font.Rowdies` | Enum.Font | Rowdies font family. | | `Enum.Font.RubikDistressed` | Enum.Font | Rubik Distressed font family. | | `Enum.Font.ShortStack` | Enum.Font | Short Stack font family. | | `Enum.Font.Silkscreen` | Enum.Font | Silkscreen font family. | | `Enum.Font.Bytesized` | Enum.Font | Bytesized font family. | | `Enum.Font.DynaPuff` | Enum.Font | DynaPuff font family. | | `Enum.Font.FiraCode` | Enum.Font | Fira Code font family. | | `Enum.Font.LobsterTwo` | Enum.Font | Lobster Two font family. | | `Enum.Font.Matemasie` | Enum.Font | Matemasie font family. | | `Enum.Font.Miltonian` | Enum.Font | Miltonian font family. | | `Enum.Font.Monoton` | Enum.Font | Monoton font family. | | `Enum.Font.Montserrat` | Enum.Font | Montserrat font family. | | `Enum.Font.Oswald` | Enum.Font | Oswald font family. | | `Enum.Font.PermanentMarker` | Enum.Font | Permanent Marker font family. | | `Enum.Font.PressStart2P` | Enum.Font | Press Start 2P font family. | | `Enum.Font.Rubik` | Enum.Font | Rubik font family. | | `Enum.Font.RubikWetPaint` | Enum.Font | Rubik Wet Paint font family. | | `Enum.Font.Rye` | Enum.Font | Rye font family. | | `Enum.Font.Tiny5` | Enum.Font | Tiny5 font family. | | `Enum.Font.AmaticSC` | Enum.Font | Amatic SC font family. | | `Enum.Font.Bangers` | Enum.Font | Bangers font family. | | `Enum.Font.ComicNeue` | Enum.Font | Comic Neue font family. | | `Enum.Font.DenkOne` | Enum.Font | Denk One font family. | | `Enum.Font.Inconsolata` | Enum.Font | Inconsolata font family. | | `Enum.Font.IndieFlower` | Enum.Font | Indie Flower font family. | | `Enum.Font.JosefinSans` | Enum.Font | Josefin Sans font family. | | `Enum.Font.Jura` | Enum.Font | Jura font family. | | `Enum.Font.Kalam` | Enum.Font | Kalam font family. | | `Enum.Font.Merriweather` | Enum.Font | Merriweather font family. | | `Enum.Font.Michroma` | Enum.Font | Michroma font family. | | `Enum.Font.Nunito` | Enum.Font | Nunito font family. | | `Enum.Font.PatrickHand` | Enum.Font | Patrick Hand font family. | | `Enum.Font.Roboto` | Enum.Font | Roboto font family. | | `Enum.Font.RobotoCondensed` | Enum.Font | Roboto Condensed font family. | | `Enum.Font.RobotoMono` | Enum.Font | Roboto Mono font family. | | `Enum.Font.Sarpanch` | Enum.Font | Sarpanch font family. | | `Enum.Font.SourceSans3` | Enum.Font | Source Sans 3 font family. | | `Enum.Font.SpecialElite` | Enum.Font | Special Elite font family. | | `Enum.Font.TitilliumWeb` | Enum.Font | Titillium Web font family. | | `Enum.Font.Ubuntu` | Enum.Font | Ubuntu font family. | ## FontStyle | Name | Type | Description | | --- | --- | --- | | `Enum.FontStyle.Thin` | Enum.FontStyle | Thin style. | | `Enum.FontStyle.ThinItalic` | Enum.FontStyle | Thin italic style. | | `Enum.FontStyle.ExtraLight` | Enum.FontStyle | Extra Light style. | | `Enum.FontStyle.ExtraLightItalic` | Enum.FontStyle | Extra Light italic style. | | `Enum.FontStyle.Light` | Enum.FontStyle | Light style. | | `Enum.FontStyle.LightItalic` | Enum.FontStyle | Light italic style. | | `Enum.FontStyle.Normal` | Enum.FontStyle | Normal style and the TextLabel default. | | `Enum.FontStyle.Italic` | Enum.FontStyle | Italic style. | | `Enum.FontStyle.Medium` | Enum.FontStyle | Medium style. | | `Enum.FontStyle.MediumItalic` | Enum.FontStyle | Medium italic style. | | `Enum.FontStyle.SemiBold` | Enum.FontStyle | Semi Bold style. | | `Enum.FontStyle.SemiBoldItalic` | Enum.FontStyle | Semi Bold italic style. | | `Enum.FontStyle.Bold` | Enum.FontStyle | Bold style. | | `Enum.FontStyle.BoldItalic` | Enum.FontStyle | Bold italic style. | | `Enum.FontStyle.ExtraBold` | Enum.FontStyle | Extra Bold style. | | `Enum.FontStyle.ExtraBoldItalic` | Enum.FontStyle | Extra Bold italic style. | | `Enum.FontStyle.Black` | Enum.FontStyle | Black style. | | `Enum.FontStyle.BlackItalic` | Enum.FontStyle | Black italic style. | ## TextTruncate | Name | Type | Description | | --- | --- | --- | | `Enum.TextTruncate.None` | Enum.TextTruncate | Does not add truncation text. Overflow is clipped by the TextLabel bounds. | | `Enum.TextTruncate.AtEnd` | Enum.TextTruncate | Truncates overflowing text at the end and adds an ellipsis, preferring whole words when possible. | | `Enum.TextTruncate.SplitWord` | Enum.TextTruncate | Truncates overflowing text at the end and may split a word before adding an ellipsis. | ## TextDirection | Name | Type | Description | | --- | --- | --- | | `Enum.TextDirection.Auto` | Enum.TextDirection | Detects left-to-right or right-to-left direction from the text. | | `Enum.TextDirection.LeftToRight` | Enum.TextDirection | Forces left-to-right text flow. | | `Enum.TextDirection.RightToLeft` | Enum.TextDirection | Forces right-to-left text flow. | ## TextXAlignment | Name | Type | Description | | --- | --- | --- | | `Enum.TextXAlignment.Left` | Enum.TextXAlignment | Aligns text to the left edge of its GUI bounds. | | `Enum.TextXAlignment.Center` | Enum.TextXAlignment | Centres text horizontally. This is the default. | | `Enum.TextXAlignment.Right` | Enum.TextXAlignment | Aligns text to the right edge of its GUI bounds. | ## TextYAlignment | Name | Type | Description | | --- | --- | --- | | `Enum.TextYAlignment.Top` | Enum.TextYAlignment | Aligns text to the top edge of its GUI bounds. | | `Enum.TextYAlignment.Center` | Enum.TextYAlignment | Centres text vertically. This is the default. | | `Enum.TextYAlignment.Bottom` | Enum.TextYAlignment | Aligns text to the bottom edge of its GUI bounds. | ## BorderMode | Name | Type | Description | | --- | --- | --- | | `Enum.BorderMode.Outline` | Enum.BorderMode | Draws the border outside the GUI object's bounds. | | `Enum.BorderMode.Middle` | Enum.BorderMode | Centres the border on the GUI object's bounds. | | `Enum.BorderMode.Inset` | Enum.BorderMode | Draws the border inside the GUI object's bounds. | ## FillDirection | Name | Type | Description | | --- | --- | --- | | `Enum.FillDirection.Horizontal` | Enum.FillDirection | Arranges or fills items from left to right before continuing on the next row or column as applicable. | | `Enum.FillDirection.Vertical` | Enum.FillDirection | Arranges or fills items from top to bottom before continuing on the next column or row as applicable. | ## HorizontalAlignment | Name | Type | Description | | --- | --- | --- | | `Enum.HorizontalAlignment.Left` | Enum.HorizontalAlignment | Aligns layout content to the left side of the parent. | | `Enum.HorizontalAlignment.Center` | Enum.HorizontalAlignment | Centres layout content horizontally in the parent. | | `Enum.HorizontalAlignment.Right` | Enum.HorizontalAlignment | Aligns layout content to the right side of the parent. | ## VerticalAlignment | Name | Type | Description | | --- | --- | --- | | `Enum.VerticalAlignment.Top` | Enum.VerticalAlignment | Aligns layout content to the top of the parent. | | `Enum.VerticalAlignment.Center` | Enum.VerticalAlignment | Centres layout content vertically in the parent. | | `Enum.VerticalAlignment.Bottom` | Enum.VerticalAlignment | Aligns layout content to the bottom of the parent. | ## StartCorner | Name | Type | Description | | --- | --- | --- | | `Enum.StartCorner.TopLeft` | Enum.StartCorner | Begins UIGridLayout placement at the top-left corner. | | `Enum.StartCorner.TopRight` | Enum.StartCorner | Begins UIGridLayout placement at the top-right corner. | | `Enum.StartCorner.BottomLeft` | Enum.StartCorner | Begins UIGridLayout placement at the bottom-left corner. | | `Enum.StartCorner.BottomRight` | Enum.StartCorner | Begins UIGridLayout placement at the bottom-right corner. | ## FollowMode | Name | Type | Description | | --- | --- | --- | | `Enum.FollowMode.Companion` | Enum.FollowMode | Follows a Player but stops a short distance away. This is the default FollowPlayer mode. | | `Enum.FollowMode.Chase` | Enum.FollowMode | Continuously walks toward the center of the Player character without a companion stopping distance. | ## FollowBrain | Name | Type | Description | | --- | --- | --- | | `Enum.FollowBrain.Dumb` | Enum.FollowBrain | Uses the original direct FollowPlayer movement. This is the default FollowPlayer brain. | | `Enum.FollowBrain.Smart` | Enum.FollowBrain | Uses obstacle-aware following with vertical-height-aware gap jumps, safe small and large ledge drops, large-area doorway/bridge routing, wall/corner clearance, automatic obstacle jumping, nearest-ladder search and ladder climbing. | ## NetworkReliability | Name | Type | Description | | --- | --- | --- | | `Enum.NetworkReliability.Reliable` | Enum.NetworkReliability | Keeps ordered delivery using Glorpia's reliable transport. | | `Enum.NetworkReliability.Unreliable` | Enum.NetworkReliability | Allows older pending packets for the same remote and target to be discarded when newer traffic supersedes them. | ## RemotePayload | Name | Type | Description | | --- | --- | --- | | `Enum.RemotePayload.Default` | Enum.RemotePayload | Allows every supported RemoteEvent and RemoteFunction payload type. | | `Enum.RemotePayload.Custom` | Enum.RemotePayload | Enforces the remote's AllowedPayloadTypes list. | ## NetworkPriority | Name | Type | Description | | --- | --- | --- | | `Enum.NetworkPriority.Default` | Enum.NetworkPriority | Normal remote traffic priority. | | `Enum.NetworkPriority.High` | Enum.NetworkPriority | Highest creator-selected remote traffic priority. | | `Enum.NetworkPriority.Medium` | Enum.NetworkPriority | Higher priority than Default, below High. | | `Enum.NetworkPriority.Low` | Enum.NetworkPriority | Lowest remote traffic priority for non-urgent signals. | ## BasicSound.SoundName | Name | Type | Description | | --- | --- | --- | | `Enum.BasicSound.BubblePop` | Enum.BasicSound.SoundName | BubblePop. | | `Enum.BasicSound.MonkeyParty` | Enum.BasicSound.SoundName | Monkey Party. | | `Enum.BasicSound.AquaFrenzy` | Enum.BasicSound.SoundName | Aqua Frenzy. | | `Enum.BasicSound.PartyMusic` | Enum.BasicSound.SoundName | Party Music. | | `Enum.BasicSound.Chiptronical` | Enum.BasicSound.SoundName | Chiptronical. | | `Enum.BasicSound.ZeroProject` | Enum.BasicSound.SoundName | Zero Project. | | `Enum.BasicSound.JingleBells` | Enum.BasicSound.SoundName | Jingle Bells. | | `Enum.BasicSound.SantaMagic` | Enum.BasicSound.SoundName | Santa Magic. | | `Enum.BasicSound.SpookyGames` | Enum.BasicSound.SoundName | Spooky Games. | | `Enum.BasicSound.MysticalHalloween` | Enum.BasicSound.SoundName | Mystical Halloween. | | `Enum.BasicSound.HalloweenSpook` | Enum.BasicSound.SoundName | Halloween Spook. | | `Enum.BasicSound.HolidaySpirit` | Enum.BasicSound.SoundName | Holiday Spirit. | | `Enum.BasicSound.MorningMood` | Enum.BasicSound.SoundName | Morning Mood. | | `Enum.BasicSound.GymnopedieNo1` | Enum.BasicSound.SoundName | Gymnopédie No. 1. | | `Enum.BasicSound.Lacrimosa` | Enum.BasicSound.SoundName | Lacrimosa. | | `Enum.BasicSound.Hallelujah` | Enum.BasicSound.SoundName | Hallelujah. | | `Enum.BasicSound.HallOfTheMountainKing` | Enum.BasicSound.SoundName | Hall of the Mountain King. | | `Enum.BasicSound.TheEntertainer` | Enum.BasicSound.SoundName | The Entertainer. | | `Enum.BasicSound.Invincible` | Enum.BasicSound.SoundName | Invincible. | | `Enum.BasicSound.CurbYourEnthusiasm` | Enum.BasicSound.SoundName | Curb Your Enthusiasm. | | `Enum.BasicSound.EntryOfTheGladiators` | Enum.BasicSound.SoundName | Entry of the Gladiators. | | `Enum.BasicSound.DistractionDance` | Enum.BasicSound.SoundName | Distraction Dance. | | `Enum.BasicSound.YouGotJebaited` | Enum.BasicSound.SoundName | You Got Jebaited. | ```luau local sound = Instance.new("BasicSound") sound.Sound = Enum.BasicSound.PartyMusic ``` ## KeyCode | Name | Type | Description | | --- | --- | --- | | `Enum.KeyCode.None` | Enum.KeyCode | No keyboard key. | | `Enum.KeyCode.Backspace` | Enum.KeyCode | Backspace keyboard key. | | `Enum.KeyCode.Tab` | Enum.KeyCode | Tab keyboard key. | | `Enum.KeyCode.Clear` | Enum.KeyCode | Clear keyboard key. | | `Enum.KeyCode.Return` | Enum.KeyCode | Return keyboard key. | | `Enum.KeyCode.Pause` | Enum.KeyCode | Pause keyboard key. | | `Enum.KeyCode.Escape` | Enum.KeyCode | Escape keyboard key. | | `Enum.KeyCode.Space` | Enum.KeyCode | Space keyboard key. | | `Enum.KeyCode.QuotedDouble` | Enum.KeyCode | QuotedDouble keyboard key. | | `Enum.KeyCode.Hash` | Enum.KeyCode | Hash keyboard key. | | `Enum.KeyCode.Dollar` | Enum.KeyCode | Dollar keyboard key. | | `Enum.KeyCode.Percent` | Enum.KeyCode | Percent keyboard key. | | `Enum.KeyCode.Ampersand` | Enum.KeyCode | Ampersand keyboard key. | | `Enum.KeyCode.Quote` | Enum.KeyCode | Quote keyboard key. | | `Enum.KeyCode.LeftParenthesis` | Enum.KeyCode | LeftParenthesis keyboard key. | | `Enum.KeyCode.RightParenthesis` | Enum.KeyCode | RightParenthesis keyboard key. | | `Enum.KeyCode.Asterisk` | Enum.KeyCode | Asterisk keyboard key. | | `Enum.KeyCode.Plus` | Enum.KeyCode | Plus keyboard key. | | `Enum.KeyCode.Comma` | Enum.KeyCode | Comma keyboard key. | | `Enum.KeyCode.Minus` | Enum.KeyCode | Minus keyboard key. | | `Enum.KeyCode.Period` | Enum.KeyCode | Period keyboard key. | | `Enum.KeyCode.Slash` | Enum.KeyCode | Slash keyboard key. | | `Enum.KeyCode.Zero` | Enum.KeyCode | Zero keyboard key. | | `Enum.KeyCode.One` | Enum.KeyCode | One keyboard key. | | `Enum.KeyCode.Two` | Enum.KeyCode | Two keyboard key. | | `Enum.KeyCode.Three` | Enum.KeyCode | Three keyboard key. | | `Enum.KeyCode.Four` | Enum.KeyCode | Four keyboard key. | | `Enum.KeyCode.Five` | Enum.KeyCode | Five keyboard key. | | `Enum.KeyCode.Six` | Enum.KeyCode | Six keyboard key. | | `Enum.KeyCode.Seven` | Enum.KeyCode | Seven keyboard key. | | `Enum.KeyCode.Eight` | Enum.KeyCode | Eight keyboard key. | | `Enum.KeyCode.Nine` | Enum.KeyCode | Nine keyboard key. | | `Enum.KeyCode.Colon` | Enum.KeyCode | Colon keyboard key. | | `Enum.KeyCode.Semicolon` | Enum.KeyCode | Semicolon keyboard key. | | `Enum.KeyCode.LessThan` | Enum.KeyCode | LessThan keyboard key. | | `Enum.KeyCode.Equals` | Enum.KeyCode | Equals keyboard key. | | `Enum.KeyCode.GreaterThan` | Enum.KeyCode | GreaterThan keyboard key. | | `Enum.KeyCode.Question` | Enum.KeyCode | Question keyboard key. | | `Enum.KeyCode.At` | Enum.KeyCode | At keyboard key. | | `Enum.KeyCode.LeftBracket` | Enum.KeyCode | LeftBracket keyboard key. | | `Enum.KeyCode.BackSlash` | Enum.KeyCode | BackSlash keyboard key. | | `Enum.KeyCode.RightBracket` | Enum.KeyCode | RightBracket keyboard key. | | `Enum.KeyCode.Caret` | Enum.KeyCode | Caret keyboard key. | | `Enum.KeyCode.Underscore` | Enum.KeyCode | Underscore keyboard key. | | `Enum.KeyCode.Backquote` | Enum.KeyCode | Backquote keyboard key. | | `Enum.KeyCode.A` | Enum.KeyCode | A keyboard key. | | `Enum.KeyCode.B` | Enum.KeyCode | B keyboard key. | | `Enum.KeyCode.C` | Enum.KeyCode | C keyboard key. | | `Enum.KeyCode.D` | Enum.KeyCode | D keyboard key. | | `Enum.KeyCode.E` | Enum.KeyCode | E keyboard key. | | `Enum.KeyCode.F` | Enum.KeyCode | F keyboard key. | | `Enum.KeyCode.G` | Enum.KeyCode | G keyboard key. | | `Enum.KeyCode.H` | Enum.KeyCode | H keyboard key. | | `Enum.KeyCode.I` | Enum.KeyCode | I keyboard key. | | `Enum.KeyCode.J` | Enum.KeyCode | J keyboard key. | | `Enum.KeyCode.K` | Enum.KeyCode | K keyboard key. | | `Enum.KeyCode.L` | Enum.KeyCode | L keyboard key. | | `Enum.KeyCode.M` | Enum.KeyCode | M keyboard key. | | `Enum.KeyCode.N` | Enum.KeyCode | N keyboard key. | | `Enum.KeyCode.O` | Enum.KeyCode | O keyboard key. | | `Enum.KeyCode.P` | Enum.KeyCode | P keyboard key. | | `Enum.KeyCode.Q` | Enum.KeyCode | Q keyboard key. | | `Enum.KeyCode.R` | Enum.KeyCode | R keyboard key. | | `Enum.KeyCode.S` | Enum.KeyCode | S keyboard key. | | `Enum.KeyCode.T` | Enum.KeyCode | T keyboard key. | | `Enum.KeyCode.U` | Enum.KeyCode | U keyboard key. | | `Enum.KeyCode.V` | Enum.KeyCode | V keyboard key. | | `Enum.KeyCode.W` | Enum.KeyCode | W keyboard key. | | `Enum.KeyCode.X` | Enum.KeyCode | X keyboard key. | | `Enum.KeyCode.Y` | Enum.KeyCode | Y keyboard key. | | `Enum.KeyCode.Z` | Enum.KeyCode | Z keyboard key. | | `Enum.KeyCode.LeftCurly` | Enum.KeyCode | LeftCurly keyboard key. | | `Enum.KeyCode.Pipe` | Enum.KeyCode | Pipe keyboard key. | | `Enum.KeyCode.RightCurly` | Enum.KeyCode | RightCurly keyboard key. | | `Enum.KeyCode.Tilde` | Enum.KeyCode | Tilde keyboard key. | | `Enum.KeyCode.Delete` | Enum.KeyCode | Delete keyboard key. | | `Enum.KeyCode.KeypadZero` | Enum.KeyCode | KeypadZero keyboard key. | | `Enum.KeyCode.KeypadOne` | Enum.KeyCode | KeypadOne keyboard key. | | `Enum.KeyCode.KeypadTwo` | Enum.KeyCode | KeypadTwo keyboard key. | | `Enum.KeyCode.KeypadThree` | Enum.KeyCode | KeypadThree keyboard key. | | `Enum.KeyCode.KeypadFour` | Enum.KeyCode | KeypadFour keyboard key. | | `Enum.KeyCode.KeypadFive` | Enum.KeyCode | KeypadFive keyboard key. | | `Enum.KeyCode.KeypadSix` | Enum.KeyCode | KeypadSix keyboard key. | | `Enum.KeyCode.KeypadSeven` | Enum.KeyCode | KeypadSeven keyboard key. | | `Enum.KeyCode.KeypadEight` | Enum.KeyCode | KeypadEight keyboard key. | | `Enum.KeyCode.KeypadNine` | Enum.KeyCode | KeypadNine keyboard key. | | `Enum.KeyCode.KeypadPeriod` | Enum.KeyCode | KeypadPeriod keyboard key. | | `Enum.KeyCode.KeypadDivide` | Enum.KeyCode | KeypadDivide keyboard key. | | `Enum.KeyCode.KeypadMultiply` | Enum.KeyCode | KeypadMultiply keyboard key. | | `Enum.KeyCode.KeypadMinus` | Enum.KeyCode | KeypadMinus keyboard key. | | `Enum.KeyCode.KeypadPlus` | Enum.KeyCode | KeypadPlus keyboard key. | | `Enum.KeyCode.KeypadEnter` | Enum.KeyCode | KeypadEnter keyboard key. | | `Enum.KeyCode.KeypadEquals` | Enum.KeyCode | KeypadEquals keyboard key. | | `Enum.KeyCode.Up` | Enum.KeyCode | Up keyboard key. | | `Enum.KeyCode.Down` | Enum.KeyCode | Down keyboard key. | | `Enum.KeyCode.Right` | Enum.KeyCode | Right keyboard key. | | `Enum.KeyCode.Left` | Enum.KeyCode | Left keyboard key. | | `Enum.KeyCode.Insert` | Enum.KeyCode | Insert keyboard key. | | `Enum.KeyCode.Home` | Enum.KeyCode | Home keyboard key. | | `Enum.KeyCode.End` | Enum.KeyCode | End keyboard key. | | `Enum.KeyCode.PageUp` | Enum.KeyCode | PageUp keyboard key. | | `Enum.KeyCode.PageDown` | Enum.KeyCode | PageDown keyboard key. | | `Enum.KeyCode.F1` | Enum.KeyCode | F1 keyboard key. | | `Enum.KeyCode.F2` | Enum.KeyCode | F2 keyboard key. | | `Enum.KeyCode.F3` | Enum.KeyCode | F3 keyboard key. | | `Enum.KeyCode.F4` | Enum.KeyCode | F4 keyboard key. | | `Enum.KeyCode.F5` | Enum.KeyCode | F5 keyboard key. | | `Enum.KeyCode.F6` | Enum.KeyCode | F6 keyboard key. | | `Enum.KeyCode.F7` | Enum.KeyCode | F7 keyboard key. | | `Enum.KeyCode.F8` | Enum.KeyCode | F8 keyboard key. | | `Enum.KeyCode.F9` | Enum.KeyCode | F9 keyboard key. | | `Enum.KeyCode.F10` | Enum.KeyCode | F10 keyboard key. | | `Enum.KeyCode.F11` | Enum.KeyCode | F11 keyboard key. | | `Enum.KeyCode.F12` | Enum.KeyCode | F12 keyboard key. | | `Enum.KeyCode.F13` | Enum.KeyCode | F13 keyboard key. | | `Enum.KeyCode.F14` | Enum.KeyCode | F14 keyboard key. | | `Enum.KeyCode.F15` | Enum.KeyCode | F15 keyboard key. | | `Enum.KeyCode.NumLock` | Enum.KeyCode | NumLock keyboard key. | | `Enum.KeyCode.CapsLock` | Enum.KeyCode | CapsLock keyboard key. | | `Enum.KeyCode.ScrollLock` | Enum.KeyCode | ScrollLock keyboard key. | | `Enum.KeyCode.RightShift` | Enum.KeyCode | RightShift keyboard key. | | `Enum.KeyCode.LeftShift` | Enum.KeyCode | LeftShift keyboard key. | | `Enum.KeyCode.RightControl` | Enum.KeyCode | RightControl keyboard key. | | `Enum.KeyCode.LeftControl` | Enum.KeyCode | LeftControl keyboard key. | | `Enum.KeyCode.RightAlt` | Enum.KeyCode | RightAlt keyboard key. | | `Enum.KeyCode.LeftAlt` | Enum.KeyCode | LeftAlt keyboard key. | | `Enum.KeyCode.RightMeta` | Enum.KeyCode | RightMeta keyboard key. | | `Enum.KeyCode.LeftMeta` | Enum.KeyCode | LeftMeta keyboard key. | | `Enum.KeyCode.LeftSuper` | Enum.KeyCode | LeftSuper keyboard key. | | `Enum.KeyCode.RightSuper` | Enum.KeyCode | RightSuper keyboard key. | | `Enum.KeyCode.Mode` | Enum.KeyCode | Mode keyboard key. | | `Enum.KeyCode.Compose` | Enum.KeyCode | Compose keyboard key. | | `Enum.KeyCode.Help` | Enum.KeyCode | Help keyboard key. | | `Enum.KeyCode.Print` | Enum.KeyCode | Print keyboard key. | | `Enum.KeyCode.SysReq` | Enum.KeyCode | SysReq keyboard key. | | `Enum.KeyCode.Break` | Enum.KeyCode | Break keyboard key. | | `Enum.KeyCode.Menu` | Enum.KeyCode | Menu keyboard key. | | `Enum.KeyCode.Power` | Enum.KeyCode | Power keyboard key. | | `Enum.KeyCode.Euro` | Enum.KeyCode | Euro keyboard key. | | `Enum.KeyCode.Undo` | Enum.KeyCode | Undo keyboard key. | ## UserInputType | Name | Type | Description | | --- | --- | --- | | `Enum.UserInputType.Keyboard` | Enum.UserInputType | Keyboard input. | | `Enum.UserInputType.MouseButton1` | Enum.UserInputType | Primary mouse button. | | `Enum.UserInputType.MouseButton2` | Enum.UserInputType | Secondary mouse button. | | `Enum.UserInputType.MouseButton3` | Enum.UserInputType | Middle mouse button. | | `Enum.UserInputType.MouseMovement` | Enum.UserInputType | Mouse movement. | | `Enum.UserInputType.MouseWheel` | Enum.UserInputType | Mouse wheel input. | ## UserInputState | Name | Type | Description | | --- | --- | --- | | `Enum.UserInputState.Begin` | Enum.UserInputState | Input began. | | `Enum.UserInputState.Change` | Enum.UserInputState | Input changed. | | `Enum.UserInputState.End` | Enum.UserInputState | Input ended. | ## MouseBehavior | Name | Type | Description | | --- | --- | --- | | `Enum.MouseBehavior.Default` | Enum.MouseBehavior | Normal cursor behaviour. | | `Enum.MouseBehavior.LockCenter` | Enum.MouseBehavior | Locks the cursor to the centre. | | `Enum.MouseBehavior.LockCurrentPosition` | Enum.MouseBehavior | Locks the cursor at its current position. | ## EasingStyle | Name | Type | Description | | --- | --- | --- | | `Enum.EasingStyle.Linear` | Enum.EasingStyle | Linear interpolation. | | `Enum.EasingStyle.Quad` | Enum.EasingStyle | Quadratic easing. | | `Enum.EasingStyle.Cubic` | Enum.EasingStyle | Cubic easing. | | `Enum.EasingStyle.Quart` | Enum.EasingStyle | Quartic easing. | | `Enum.EasingStyle.Sine` | Enum.EasingStyle | Sinusoidal easing. | | `Enum.EasingStyle.Back` | Enum.EasingStyle | Overshooting back easing. | | `Enum.EasingStyle.Bounce` | Enum.EasingStyle | Bouncing easing. | ## EasingDirection | Name | Type | Description | | --- | --- | --- | | `Enum.EasingDirection.In` | Enum.EasingDirection | Ease at the beginning. | | `Enum.EasingDirection.Out` | Enum.EasingDirection | Ease at the end. | | `Enum.EasingDirection.InOut` | Enum.EasingDirection | Ease at both ends. | ## PlaybackState | Name | Type | Description | | --- | --- | --- | | `Enum.PlaybackState.Begin` | Enum.PlaybackState | Tween has not started. | | `Enum.PlaybackState.Delayed` | Enum.PlaybackState | Tween is waiting for DelayTime. | | `Enum.PlaybackState.Playing` | Enum.PlaybackState | Tween is actively updating. | | `Enum.PlaybackState.Paused` | Enum.PlaybackState | Tween is paused. | | `Enum.PlaybackState.Completed` | Enum.PlaybackState | Tween reached its final state. | | `Enum.PlaybackState.Cancelled` | Enum.PlaybackState | Tween was cancelled or could not update a goal property. | ## UserInputService | Name | Type | Description | | --- | --- | --- | | `InputBegan` | signal | Fires when a supported input begins. | | `InputChanged` | signal | Fires for changing input such as mouse movement or wheel. | | `InputEnded` | signal | Fires when a supported input ends. | | `MouseBehavior` | Enum.MouseBehavior | Read/write cursor behaviour. | | `IsKeyDown(key)` | method | Checks a supported key enum. | | `GetMouseDelta()` | method | Returns a Vector2 mouse delta. | | `IsMouseButtonPressed(type)` | method | Checks MouseButton1, MouseButton2 or MouseButton3. | ```luau local UserInputService = game:GetService("UserInputService") UserInputService.InputBegan:Connect(function(input) if input.KeyCode == Enum.KeyCode.Space then print("Space pressed") end end) ``` --- Source: https://docs.glorpia.com/scripting/events/humanoid-died Markdown: https://docs.glorpia.com/scripting/events/humanoid-died.md --- title: "Humanoid.Died" description: "Fires when a Humanoid transitions from alive to dead." canonical: "https://docs.glorpia.com/scripting/events/humanoid-died" markdown: "https://docs.glorpia.com/scripting/events/humanoid-died.md" --- # Humanoid.Died Fires when a Humanoid transitions from alive to dead. **Category:** Scripting / Event ## Connect ```luau humanoid.Died:Connect(callback) ``` The callback receives no event arguments. ## Example: React To Death ```luau local humanoid = script.Parent:WaitForChild("Humanoid") humanoid.Died:Connect(function() print(script.Parent.Name, "died") end) ``` ## When it fires The event is driven by the authoritative Humanoid state. It fires when a living Humanoid becomes dead, including when `TakeDamage()` or a Health change reduces Health to zero. Authored NPC Humanoids use the same event path as player Humanoids. > **Note:** Connecting after a Humanoid is already dead does not replay an earlier death. ## Related - [Humanoid:TakeDamage()](https://docs.glorpia.com/scripting/functions/take-damage.md) — Reduce Humanoid health through the authoritative health path. - [Humanoid](https://docs.glorpia.com/instances/humanoid.md) — Health and movement state. - [Signals & Connect()](https://docs.glorpia.com/scripting/functions/signals.md) — Connection objects and Disconnect(). --- Source: https://docs.glorpia.com/scripting/events/touched Markdown: https://docs.glorpia.com/scripting/events/touched.md --- title: "BasePart.Touched" description: "Fires when a BasePart begins a new Workspace contact." canonical: "https://docs.glorpia.com/scripting/events/touched" markdown: "https://docs.glorpia.com/scripting/events/touched.md" --- # BasePart.Touched Fires when a BasePart begins a new Workspace contact. **Category:** Scripting / Event ## Syntax ```luau basePart.Touched:Connect(function(hit) ... end) ``` ## Callback argument | Name | Type | Description | | --- | --- | --- | | `hit` | BasePart | The other BasePart involved in the new contact. | ## Behaviour `Touched` is available to both public `ServerScript` and `LocalScript` code on `Part` and `SpawnLocation`. ServerScripts evaluate the authoritative Workspace state. LocalScripts evaluate that client's replicated/local Workspace state, and ordinary property changes made by a LocalScript callback stay local unless the script explicitly communicates through a RemoteEvent or RemoteFunction. ServerScript contact evaluation runs after authoritative physics so a physical movement is not scanned once before physics and then again after it. Client-side contact evaluation uses the local replicated transforms after the client updates them. When a Touched signal is first connected, contacts that already exist are recorded as baseline state and do not immediately fire. A continuously touching pair also does not fire every frame. The pair must stop touching and later begin a new contact before another callback can occur. Contact checks use the Parts' oriented transforms instead of a large world-axis bounding box. Static listener Parts only test against Parts that actually moved, rotated or resized that frame. This avoids nearby anchored map pieces being reported as new contacts and prevents neighbouring Touched scripts from producing static chain reactions. BaseParts belonging to a dead Humanoid are ignored by Touched, so detached death parts do not create a new burst of callbacks. > **Note:** An anchored Part can still receive `Touched` when a moving character or other moving Part enters it. Parts outside Workspace are not active Workspace contact geometry. ## Example: damage a character on the server ```luau local damagePart = script.Parent damagePart.Touched:Connect(function(hit) local character = hit.Parent local humanoid = character and character:FindFirstChildOfClass("Humanoid") if humanoid then humanoid:TakeDamage(25) end end) ``` > **Note:** This damage example belongs in a `ServerScript`. A `LocalScript` can use the same event for client-only effects and property changes, but authoritative Humanoid changes remain server-side. ## Related - [BasePart](https://docs.glorpia.com/instances/basepart.md) — Physical properties shared by Part and SpawnLocation. - [Signals & Connect()](https://docs.glorpia.com/scripting/functions/signals.md) — Connect and disconnect event callbacks. - [FindFirstChildOfClass()](https://docs.glorpia.com/scripting/functions/find-first-child-of-class.md) — Find a direct child such as a Humanoid by class name. --- Source: https://docs.glorpia.com/scripting/functions/clone Markdown: https://docs.glorpia.com/scripting/functions/clone.md --- title: "Clone()" description: "Creates an unparented deep copy of an instance and its cloneable descendants." canonical: "https://docs.glorpia.com/scripting/functions/clone" markdown: "https://docs.glorpia.com/scripting/functions/clone.md" --- # Clone() Creates an unparented deep copy of an instance and its cloneable descendants. **Category:** Scripting / Method ## Syntax ```luau instance:Clone() ``` ## Return value | Name | Type | Description | | --- | --- | --- | | `return` | Instance | A new copy with a new instance ID. The cloned root starts with Parent set to nil. | > **Note:** The complete supported child hierarchy is copied recursively regardless of the root class. For example, cloning a Part also clones a Script inside that Part and every supported child under that Script. Every cloned descendant receives a fresh instance ID. ObjectValue references that point inside the cloned tree are remapped to the matching cloned target; external ObjectValue references remain external. Runtime-owned service roots and Player instances cannot be cloned. ## Example: Duplicate A Model ```luau local template = workspace:WaitForChild("Crate") local copy = template:Clone() copy.Name = "CrateCopy" copy.Parent = workspace copy:PivotTo(CFrame.new(0, 8, 0)) ``` ## Parenting the clone The returned root is not placed into the hierarchy automatically. Set its `Parent` when the copy is ready to become part of the game hierarchy. ## Related - [Instance.new()](https://docs.glorpia.com/scripting/functions/instance-new.md) — Create a new empty supported instance. - [Destroy()](https://docs.glorpia.com/scripting/functions/destroy.md) — Remove an instance and its descendants. - [PivotTo()](https://docs.glorpia.com/scripting/functions/pivot-to.md) — Move a cloned BasePart or Model. --- Source: https://docs.glorpia.com/scripting/functions/destroy Markdown: https://docs.glorpia.com/scripting/functions/destroy.md --- title: "Destroy()" description: "Removes an instance and recursively removes its children." canonical: "https://docs.glorpia.com/scripting/functions/destroy" markdown: "https://docs.glorpia.com/scripting/functions/destroy.md" --- # Destroy() Removes an instance and recursively removes its children. **Category:** Scripting / Method ## Syntax ```luau instance:Destroy() ``` ## Example: Remove Generated Content ```luau local generated = workspace:FindFirstChild("Generated") if generated then generated:Destroy() end ``` ## After destruction References to the destroyed instance no longer refer to an object that exists in the World. Accessing instance data after it has been removed can raise a runtime error. > **Note:** Core world services are protected by the runtime and cannot be destroyed. --- Source: https://docs.glorpia.com/scripting/functions/find-first-child Markdown: https://docs.glorpia.com/scripting/functions/find-first-child.md --- title: "FindFirstChild()" description: "Finds a named child without assuming that the object exists." canonical: "https://docs.glorpia.com/scripting/functions/find-first-child" markdown: "https://docs.glorpia.com/scripting/functions/find-first-child.md" --- # FindFirstChild() Finds a named child without assuming that the object exists. **Category:** Scripting / Method ## Syntax ```luau instance:FindFirstChild(name, recursive?) ``` ## Parameters and return value | Name | Type | Description | | --- | --- | --- | | `name` | string | Exact child name to search for. | | `recursive` | boolean? | When true, searches descendants instead of only direct children. | | `return` | Instance or nil | Matching object, or nil if not found. | ## Example: Safely Find An Optional Part ```luau local part = workspace:FindFirstChild("MovingPart") if part then part.Position = Vector3.new(0, 8, 0) end ``` > **Note:** The Workspace and normal Instance versions support the optional recursive argument. `Players:FindFirstChild(name)` searches direct player children only. ## Recursive lookup ```luau local nestedPart = workspace:FindFirstChild("NestedPart", true) if nestedPart then print(nestedPart:GetFullName()) end ``` --- Source: https://docs.glorpia.com/scripting/functions/find-first-child-of-class Markdown: https://docs.glorpia.com/scripting/functions/find-first-child-of-class.md --- title: "FindFirstChildOfClass()" description: "Finds the first direct child whose ClassName exactly matches the requested class." canonical: "https://docs.glorpia.com/scripting/functions/find-first-child-of-class" markdown: "https://docs.glorpia.com/scripting/functions/find-first-child-of-class.md" --- # FindFirstChildOfClass() Finds the first direct child whose ClassName exactly matches the requested class. **Category:** Scripting / Method ## Syntax ```luau instance:FindFirstChildOfClass(className) ``` ## Parameters and return value | Name | Type | Description | | --- | --- | --- | | `className` | string | Exact ClassName to search for among direct children. | | `return` | Instance or nil | The first matching direct child, or nil when no match exists. | > **Note:** This method searches direct children only. It does not have a recursive argument. ## Example: find a Humanoid ```luau script.Parent.Touched:Connect(function(hit) local character = hit.Parent local humanoid = character and character:FindFirstChildOfClass("Humanoid") if humanoid then humanoid.Health = 0 end end) ``` ## FindFirstChildOfClass vs IsA `FindFirstChildOfClass()` compares the direct child's concrete `ClassName`. For example, searching for `"BasePart"` does not match a Part merely because `Part:IsA("BasePart")` is true. ## Related - [FindFirstChild()](https://docs.glorpia.com/scripting/functions/find-first-child.md) — Find by child name, optionally recursively. - [IsA()](https://docs.glorpia.com/scripting/functions/is-a.md) — Check concrete classes and supported base classes. - [BasePart.Touched](https://docs.glorpia.com/scripting/events/touched.md) — A common place to locate a contacted character's Humanoid. --- Source: https://docs.glorpia.com/scripting/functions/find-first-child-which-is-a Markdown: https://docs.glorpia.com/scripting/functions/find-first-child-which-is-a.md --- title: "FindFirstChildWhichIsA()" description: "Finds the first child that matches a class or one of Glorpia's supported base classes." canonical: "https://docs.glorpia.com/scripting/functions/find-first-child-which-is-a" markdown: "https://docs.glorpia.com/scripting/functions/find-first-child-which-is-a.md" --- # FindFirstChildWhichIsA() Finds the first child that matches a class or one of Glorpia's supported base classes. **Category:** Scripting / Method ## Syntax ```luau instance:FindFirstChildWhichIsA(className, recursive?) ``` ## Parameters and return value | Name | Type | Description | | --- | --- | --- | | `className` | string | Class or supported base class to test with IsA(). | | `recursive` | boolean? | When true, searches descendants instead of only direct children. | | `return` | Instance or nil | The first matching object, or nil when no match exists. | > **Note:** Unlike `FindFirstChildOfClass()`, this method uses `IsA()`. For example, a Part can match `"BasePart"`. ## Example: Find Any BasePart ```luau local firstPart = workspace:FindFirstChildWhichIsA("BasePart", true) if firstPart then print(firstPart:GetFullName()) end ``` ## Example: Find A Humanoid ```luau script.Parent.Touched:Connect(function(hit) local character = hit.Parent local humanoid = character and character:FindFirstChildWhichIsA("Humanoid") if humanoid then humanoid:TakeDamage(10) end end) ``` ## Related - [FindFirstChildOfClass()](https://docs.glorpia.com/scripting/functions/find-first-child-of-class.md) — Find a direct child by exact concrete ClassName. - [IsA()](https://docs.glorpia.com/scripting/functions/is-a.md) — Test an instance against concrete and supported base classes. - [FindFirstChild()](https://docs.glorpia.com/scripting/functions/find-first-child.md) — Find an object by name. --- Source: https://docs.glorpia.com/scripting/functions/follow-player Markdown: https://docs.glorpia.com/scripting/functions/follow-player.md --- title: "Humanoid:FollowPlayer()" description: "Continuously follows a Player with an authored NPC character Model." canonical: "https://docs.glorpia.com/scripting/functions/follow-player" markdown: "https://docs.glorpia.com/scripting/functions/follow-player.md" --- # Humanoid:FollowPlayer() Continuously follows a Player with an authored NPC character Model. **Category:** Scripting / Humanoid ## Signature ```luau humanoid:FollowPlayer(player, modeOrBrain, brain) ``` ## Parameters | Name | Type | Description | | --- | --- | --- | | `player` | Player | Player for the NPC to continuously follow. | | `modeOrBrain` | Enum.FollowMode \| Enum.FollowBrain | Optional mode or brain. FollowMode defaults to Companion and FollowBrain defaults to Dumb. | | `brain` | Enum.FollowBrain | Optional brain when a FollowMode is also supplied. Dumb keeps direct following; Smart enables obstacle-aware navigation. | ## Behavior `FollowPlayer()` is an authoritative server operation. It is available to public `ServerScript` code and is rejected from public `LocalScript` code. The target is stored as a Player rather than as a one-time position. Every server simulation step Glorpia resolves that Player's current Character and Torso and updates the NPC's travel direction automatically. The NPC uses its normal `WalkSpeed`, gravity, falling, body facing and R6 walking animation. The walk-cycle phase is not restarted while the target moves, so the animation remains continuous while the NPC is following. `Enum.FollowMode.Companion` keeps the companion stopping distance. `Enum.FollowMode.Chase` removes that stopping distance and continuously drives the NPC toward the center of the Player character. `Enum.FollowBrain.Dumb` is the original direct-follow controller. It heads toward the target and stops when collidable geometry blocks the route. `Enum.FollowBrain.Smart` uses bounded obstacle-aware path routing. It continuously samples the short floor corridor ahead, so even small gaps are detected instead of being skipped between probes. Reachable gaps are jumped from a real takeoff point near the ledge using the Humanoid's current `JumpPower`, `WalkSpeed`, simulation step, measured gap distance and the landing platform's vertical height. Higher landings shorten the available jump range and lower landings increase the airtime. The jump arc itself is checked for blocking geometry. If the followed Player is below the NPC, Smart searches below the actual ledge for a real `CanCollide` landing surface. This applies to small step-down ledges as well as larger drops, so the NPC can follow downward instead of treating every height change as a pit. When a direct route is blocked by a wall or gap, Smart searches a larger surrounding area for a supported route, including doorways, entrances, exits and bridges around or across pits. Planned paths keep body clearance from walls and corners instead of hugging them. If the Player is substantially above the NPC, Smart also searches its nearby spatial cells for the nearest usable rung-style ladder and routes toward that ladder before climbing it. If no safe route, jump, ladder, bridge or lower platform can be found, the NPC stops in place and faces the Player instead of pacing back and forth along the obstacle edge. Companion stopping distance also checks for a clear supported route, so a nearby Player on the other side of a wall or gap is not treated as already reached. If the Player temporarily has no Character, such as while respawning, the NPC waits in place and resumes following when the Character returns. If the Player instance is removed, following is cancelled. > **Note:** The second argument may be either a FollowMode or a FollowBrain. Existing calls such as `FollowPlayer(player, Enum.FollowMode.Companion)` remain valid and use the Dumb brain. To choose both, pass the mode and brain as the second and third arguments. Calling `Move()` or `MoveTo()` cancels the current FollowPlayer target. ## Example ```luau local players = game:GetService("Players") local npc = workspace:WaitForChild("Follower") local humanoid = npc:WaitForChild("Humanoid") local player = players:GetChildren()[1] -- Existing direct companion behavior. humanoid:FollowPlayer(player, Enum.FollowBrain.Dumb) -- Obstacle-aware companion that can route, jump and climb. humanoid:FollowPlayer(player, Enum.FollowBrain.Smart) -- FollowMode and FollowBrain can also be combined. humanoid:FollowPlayer(player, Enum.FollowMode.Chase, Enum.FollowBrain.Smart) ``` ## Related - [Humanoid](https://docs.glorpia.com/instances/humanoid.md) — Health and character movement controller. - [Player](https://docs.glorpia.com/instances/player.md) — Player instance and current Character. - [Humanoid:MoveTo()](https://docs.glorpia.com/scripting/functions/move-to.md) — Move an NPC toward a fixed world position. --- Source: https://docs.glorpia.com/scripting/functions/get-bounding-box Markdown: https://docs.glorpia.com/scripting/functions/get-bounding-box.md --- title: "GetBoundingBox()" description: "Returns a pivot-oriented bounding box that contains all descendant BaseParts in a Model." canonical: "https://docs.glorpia.com/scripting/functions/get-bounding-box" markdown: "https://docs.glorpia.com/scripting/functions/get-bounding-box.md" --- # GetBoundingBox() Returns a pivot-oriented bounding box that contains all descendant BaseParts in a Model. **Category:** Scripting / Model method ## Syntax ```luau model:GetBoundingBox() ``` ## Return values | Name | Type | Description | | --- | --- | --- | | `CFrame` | CFrame | World-space centre and orientation of the bounding box. | | `Size` | Vector3 | Width, height and depth of the bounding box in that orientation. | > **Note:** The bounding box uses the Model pivot orientation, so a rotated Model can return a rotated bounding-box CFrame. ## Example ```luau local model = workspace:WaitForChild("Vehicle") local boundsCFrame, boundsSize = model:GetBoundingBox() print(boundsCFrame.Position) print(boundsSize) ``` ## Related - [GetPivot()](https://docs.glorpia.com/scripting/functions/get-pivot.md) — Read the Model pivot used to orient the bounds. - [ScaleTo()](https://docs.glorpia.com/scripting/functions/scale-to.md) — Uniformly resize the Model. - [Model](https://docs.glorpia.com/instances/model.md) — Model properties and methods. --- Source: https://docs.glorpia.com/scripting/functions/get-children Markdown: https://docs.glorpia.com/scripting/functions/get-children.md --- title: "GetChildren()" description: "Returns the direct children of an Instance or Workspace." canonical: "https://docs.glorpia.com/scripting/functions/get-children" markdown: "https://docs.glorpia.com/scripting/functions/get-children.md" --- # GetChildren() Returns the direct children of an Instance or Workspace. **Category:** Scripting / Method ## Syntax ```luau instance:GetChildren() ``` ## Return value | Name | Type | Description | | --- | --- | --- | | `return` | table | A 1-indexed table of direct child instances. | ## Example: Rename Direct Children ```luau local folder = workspace:FindFirstChild("Generated") if folder then for index, child in ipairs(folder:GetChildren()) do child.Name = "Item" .. index end end ``` ## Children vs descendants `GetChildren()` only returns one hierarchy level. Use `GetDescendants()` when you need everything nested below an object. --- Source: https://docs.glorpia.com/scripting/functions/get-descendants Markdown: https://docs.glorpia.com/scripting/functions/get-descendants.md --- title: "GetDescendants()" description: "Returns every instance nested beneath an Instance or Workspace." canonical: "https://docs.glorpia.com/scripting/functions/get-descendants" markdown: "https://docs.glorpia.com/scripting/functions/get-descendants.md" --- # GetDescendants() Returns every instance nested beneath an Instance or Workspace. **Category:** Scripting / Method ## Syntax ```luau instance:GetDescendants() ``` ## Example: Find Every BasePart In A Model ```luau local model = workspace:FindFirstChild("Building") if model then for _, object in ipairs(model:GetDescendants()) do if object:IsA("BasePart") then object.Anchored = true end end end ``` > **Note:** The returned table contains descendants only; it does not include the object on which you called the method. --- Source: https://docs.glorpia.com/scripting/functions/get-full-name Markdown: https://docs.glorpia.com/scripting/functions/get-full-name.md --- title: "GetFullName()" description: "Builds a dotted hierarchy name from an instance up through its parents." canonical: "https://docs.glorpia.com/scripting/functions/get-full-name" markdown: "https://docs.glorpia.com/scripting/functions/get-full-name.md" --- # GetFullName() Builds a dotted hierarchy name from an instance up through its parents. **Category:** Scripting / Method ## Syntax ```luau instance:GetFullName() ``` ## Example ```luau local part = workspace:FindFirstChild("NestedPart", true) if part then print(part:GetFullName()) end ``` A Part inside a Model named `Vehicle` may produce a name such as `Workspace.Vehicle.NestedPart`. ## When it is useful Full names are useful in logs and debugging because they show where an object lives instead of printing only its local Name. --- Source: https://docs.glorpia.com/scripting/functions/get-pivot Markdown: https://docs.glorpia.com/scripting/functions/get-pivot.md --- title: "GetPivot()" description: "Returns the world-space pivot CFrame of a BasePart or Model." canonical: "https://docs.glorpia.com/scripting/functions/get-pivot" markdown: "https://docs.glorpia.com/scripting/functions/get-pivot.md" --- # GetPivot() Returns the world-space pivot CFrame of a BasePart or Model. **Category:** Scripting / Pivot method ## Syntax ```luau instance:GetPivot() ``` ## Supported classes | Name | Type | Description | | --- | --- | --- | | `BasePart` | CFrame | Returns the part's current CFrame. | | `Model` | CFrame | Returns the Model pivot chosen from its descendant BaseParts. | ## Example: BasePart ```luau local part = workspace:FindFirstChild("Part") if part and part:IsA("BasePart") then print(part:GetPivot().Position) end ``` ## Example: Model ```luau local model = workspace:FindFirstChild("Vehicle") if model and model:IsA("Model") then local pivot = model:GetPivot() print(pivot.Position) end ``` > **Note:** If a Model has no descendant BaseParts, `GetPivot()` raises a runtime error. ## Related - [PivotTo()](https://docs.glorpia.com/scripting/functions/pivot-to.md) — Move a BasePart or move/rotate a Model using a target CFrame. - [BasePart](https://docs.glorpia.com/instances/basepart.md) — Part and SpawnLocation transform properties. - [Model](https://docs.glorpia.com/instances/model.md) — Model grouping and pivot behavior. --- Source: https://docs.glorpia.com/scripting/functions/get-scale Markdown: https://docs.glorpia.com/scripting/functions/get-scale.md --- title: "GetScale()" description: "Returns a Model's current uniform scale." canonical: "https://docs.glorpia.com/scripting/functions/get-scale" markdown: "https://docs.glorpia.com/scripting/functions/get-scale.md" --- # GetScale() Returns a Model's current uniform scale. **Category:** Scripting / Model method ## Syntax ```luau model:GetScale() ``` ## Return value Returns the current Model scale as a number. Newly created and unscaled Models return `1`. ## Example ```luau local model = workspace:WaitForChild("Vehicle") print(model:GetScale()) model:ScaleTo(0.75) print(model:GetScale()) ``` ## Related - [ScaleTo()](https://docs.glorpia.com/scripting/functions/scale-to.md) — Set the Model's absolute uniform scale. - [Model](https://docs.glorpia.com/instances/model.md) — Model properties and methods. --- Source: https://docs.glorpia.com/scripting/functions/get-service Markdown: https://docs.glorpia.com/scripting/functions/get-service.md --- title: "game:GetService()" description: "Returns a registered Glorpia service by name." canonical: "https://docs.glorpia.com/scripting/functions/get-service" markdown: "https://docs.glorpia.com/scripting/functions/get-service.md" --- # game:GetService() Returns a registered Glorpia service by name. **Category:** Scripting / Function ## Syntax ```luau game:GetService(serviceName) ``` ## Parameters and return value | Name | Type | Description | | --- | --- | --- | | `serviceName` | string | Registered service name. | | `return` | service | The matching service object. | | `error` | runtime error | Raised when the requested service is not registered or is not permitted for the current script context. | ## Registered services | Name | Type | Description | | --- | --- | --- | | `Workspace` | service | World hierarchy, CurrentCamera and raycasts. | | `RunService` | service | Frame timing signals and runtime-state queries. | | `UserInputService` | service | Client keyboard and mouse input for LocalScripts and CoreScripts. | | `Players` | service | Player list, LocalPlayer and player signals. | | `Lighting` | service | Brightness and time of day. | | `TweenService` | service | Property animation and easing. | | `DebrisService` | service | Schedules Instances for delayed destruction. Debris is an alias. | | `ServerScriptService` | service | Server-side hierarchy for executable ServerScripts. | | `ServerStorage` | service | Server-only stored hierarchy. | | `ReplicatedStorage` | service | Shared stored hierarchy for supported replicated instances. | > **Note:** `game.Workspace`, `game.Players`, `game.Lighting`, `game.ServerScriptService`, `game.ServerStorage`, `game.ReplicatedStorage`, `game.DebrisService` and `game.Debris` are also available as direct properties. ## Public script permissions Public ServerScripts cannot request `UserInputService`. Public LocalScripts cannot request `ServerScriptService` or `ServerStorage`. Shared documented services such as Workspace, Players, Lighting, ReplicatedStorage, TweenService, DebrisService and RunService are available on both sides. ## Example ```luau local Workspace = game:GetService("Workspace") local Lighting = game:GetService("Lighting") local ReplicatedStorage = game:GetService("ReplicatedStorage") local DebrisService = game:GetService("DebrisService") print(Workspace == game.Workspace) print(ReplicatedStorage == game.ReplicatedStorage) Lighting.TimeOfDay = "12:00:00" ``` ## Service reference - [Workspace](https://docs.glorpia.com/services/workspace.md) — World hierarchy and raycasts. - [RunService](https://docs.glorpia.com/services/runservice.md) — Frame signals and runtime state. - [UserInputService](https://docs.glorpia.com/services/userinputservice.md) — Client input state and events for LocalScripts and CoreScripts. - [Players](https://docs.glorpia.com/services/players.md) — Player access and events. - [Lighting](https://docs.glorpia.com/services/lighting.md) — Scene lighting controls. - [TweenService](https://docs.glorpia.com/services/tweenservice.md) — Property animation. - [DebrisService](https://docs.glorpia.com/services/debrisservice.md) — Delayed Instance cleanup. - [ServerScriptService](https://docs.glorpia.com/services/serverscriptservice.md) — Authoritative server script container. - [ServerStorage](https://docs.glorpia.com/services/serverstorage.md) — Server-only stored hierarchy. - [ReplicatedStorage](https://docs.glorpia.com/services/replicatedstorage.md) — Shared replicated storage hierarchy. --- Source: https://docs.glorpia.com/scripting/functions/instance-new Markdown: https://docs.glorpia.com/scripting/functions/instance-new.md --- title: "Instance.new()" description: "Creates a new unparented Glorpia instance of a supported class." canonical: "https://docs.glorpia.com/scripting/functions/instance-new" markdown: "https://docs.glorpia.com/scripting/functions/instance-new.md" --- # Instance.new() Creates a new unparented Glorpia instance of a supported class. **Category:** Scripting / Function ## Syntax ```luau Instance.new(className) ``` ## Parameters and return value | Name | Type | Description | | --- | --- | --- | | `className` | string | Class to create. | | `return` | Instance | The newly created instance. | ## Supported classes | Name | Type | Description | | --- | --- | --- | | `Part` | BasePart | General-purpose physical part. | | `SpawnLocation` | BasePart | Character spawn part. | | `Model` | Instance | Hierarchy group with pivot methods. | | `Folder` | Instance | Hierarchy-only container. | | `Humanoid` | Instance | Health and character movement controller. | | `BasicSound` | Instance | Global or BasePart-emitted audio. | | `ScreenGui` | Instance | 2D GUI container that renders from StarterGui/PlayerGui. | | `SurfaceGui` | Instance | World-surface GUI container that renders when parented to a Part or SpawnLocation. | | `BillboardGui` | Instance | World-space GUI container that renders when parented to a Part or SpawnLocation. | | `Frame` | Instance | Rectangular GUI object used inside a valid GUI container chain. | | `ScrollingFrame` | Instance | Scrollable rectangular GUI container. | | `UIListLayout` | Instance | Automatically arranges sibling GUI objects in a list. | | `UIGridLayout` | Instance | Automatically arranges sibling GUI objects into grid cells. | | `TextLabel` | Instance | Text GUI object with selectable font families and styles. | | `TextButton` | Instance | Clickable text GUI object with client-side button signals. | | `UICorner` | Instance | Rounds a Frame, TextLabel or TextButton background. | | `UIGradient` | Instance | Applies a two-endpoint colour/transparency gradient to a parent GUI object. | | `UIBlur` | Instance | Blurs the rendered 3D backdrop behind a parent GUI object. | | `BlurEffect` | Instance | Lighting post-effect that blurs the rendered 3D world. | | `ColourCorrection` | Instance | Lighting post-effect for brightness, contrast, saturation and tint. ColorCorrection is accepted as an alias. | | `ServerScript` | Instance | Public server script hierarchy object. Enabled copies start once when discovered under Workspace or ServerScriptService. | | `LocalScript` | Instance | Public client script hierarchy object. Enabled copies start once when discovered under local PlayerGui, PlayerScripts or Character ancestry. | | `RemoteEvent` | Instance | One-way client/server communication object. | | `RemoteFunction` | Instance | Request/response client/server communication object. | | `BinaryStringValue` | ValueBase | Stores binary/string-like data through Luau strings. | | `BoolValue` | ValueBase | Stores true or false. | | `CFrameValue` | ValueBase | Stores a position and rotation. | | `Colour3Value` | ValueBase | Stores an RGB colour. Color3Value is accepted as an American-spelling alias. | | `IntValue` | ValueBase | Stores a signed integer. | | `NumberValue` | ValueBase | Stores a number. | | `ObjectValue` | ValueBase | Stores an Instance reference or nil. | | `StringValue` | ValueBase | Stores text. | | `Vector3Value` | ValueBase | Stores a three-dimensional vector. | > **Note:** `Instance.new()` does not create `BasePart`, `Player`, `Camera`, services, `CoreScript` or `CoreLocalScript`. Core script classes are engine-owned. Parenting is unrestricted for created instances. Rendering, simulation and public-script execution still depend on runtime ancestry; for example, a ScreenGui outside StarterGui/PlayerGui remains in the hierarchy but does not render. ## Example: Create And Parent A Part New instances start without a Parent. Configure the object, then parent it where you want it to appear. ```luau local part = Instance.new("Part") part.Name = "BlueBlock" part.Size = Vector3.new(4, 2, 4) part.Colour = Colour3.fromRGB(80, 140, 255) part.Parent = workspace ``` ## Class reference - [Part](https://docs.glorpia.com/instances/part.md) — Part defaults and BasePart inheritance. - [Model](https://docs.glorpia.com/instances/model.md) — Grouping and pivot operations. - [Folder](https://docs.glorpia.com/instances/folder.md) — Hierarchy organisation. - [Humanoid](https://docs.glorpia.com/instances/humanoid.md) — Health and movement properties. - [BasicSound](https://docs.glorpia.com/instances/basicsound.md) — Global and spatial audio instance. - [ScreenGui](https://docs.glorpia.com/instances/screengui.md) — 2D player GUI container. - [SurfaceGui](https://docs.glorpia.com/instances/surfacegui.md) — Part-surface GUI container. - [BillboardGui](https://docs.glorpia.com/instances/billboardgui.md) — World-space GUI container. - [Frame](https://docs.glorpia.com/instances/frame.md) — GUI frame and container. - [ScrollingFrame](https://docs.glorpia.com/instances/scrollingframe.md) — Scrollable GUI container. - [UIListLayout](https://docs.glorpia.com/instances/uilistlayout.md) — Horizontal or vertical GUI layout component. - [UIGridLayout](https://docs.glorpia.com/instances/uigridlayout.md) — Grid-based GUI layout component. - [TextLabel](https://docs.glorpia.com/instances/textlabel.md) — GUI text object with Enum.Font and Enum.FontStyle. - [TextButton](https://docs.glorpia.com/instances/textbutton.md) — Clickable GUI text object with client input signals. - [UICorner](https://docs.glorpia.com/instances/uicorner.md) — Rounded GUI corners. - [UIGradient](https://docs.glorpia.com/instances/uigradient.md) — Colour and transparency gradient component for GUI objects. - [UIBlur](https://docs.glorpia.com/instances/uiblur.md) — Backdrop blur component for GUI objects. - [BlurEffect](https://docs.glorpia.com/instances/blureffect.md) — World blur effect for Lighting. - [ColourCorrection](https://docs.glorpia.com/instances/colourcorrection.md) — World colour correction effect for Lighting. - [LocalScript](https://docs.glorpia.com/instances/localscript.md) — Public client-side script class; runtime PlayerGui, PlayerScripts and Character copies start when discovered. - [ServerScript](https://docs.glorpia.com/instances/serverscript.md) — Public server-side script class; enabled valid descendants start once when discovered. - [RemoteEvent](https://docs.glorpia.com/instances/remoteevent.md) — One-way communication between LocalScripts and ServerScripts. - [RemoteFunction](https://docs.glorpia.com/instances/remotefunction.md) — Request/response communication between LocalScripts and ServerScripts. - [ValueBase](https://docs.glorpia.com/instances/valuebase.md) — Shared Value and Changed API for value classes. - [BinaryStringValue](https://docs.glorpia.com/instances/binarystringvalue.md) — Binary/string-like value class. - [BoolValue](https://docs.glorpia.com/instances/boolvalue.md) — Boolean value class. - [CFrameValue](https://docs.glorpia.com/instances/cframevalue.md) — CFrame value class. - [Colour3Value](https://docs.glorpia.com/instances/colour3value.md) — Colour value class. - [IntValue](https://docs.glorpia.com/instances/intvalue.md) — Integer value class. - [NumberValue](https://docs.glorpia.com/instances/numbervalue.md) — Number value class. - [ObjectValue](https://docs.glorpia.com/instances/objectvalue.md) — Instance-reference value class. - [StringValue](https://docs.glorpia.com/instances/stringvalue.md) — Text value class. - [Vector3Value](https://docs.glorpia.com/instances/vector3value.md) — Vector3 value class. - [CoreScript](https://docs.glorpia.com/instances/corescript.md) — Privileged engine-only script class. - [CoreLocalScript](https://docs.glorpia.com/instances/corelocalscript.md) — Privileged engine-only local script class. --- Source: https://docs.glorpia.com/scripting/functions/is-a Markdown: https://docs.glorpia.com/scripting/functions/is-a.md --- title: "IsA()" description: "Checks whether an object matches a Glorpia class or supported base class." canonical: "https://docs.glorpia.com/scripting/functions/is-a" markdown: "https://docs.glorpia.com/scripting/functions/is-a.md" --- # IsA() Checks whether an object matches a Glorpia class or supported base class. **Category:** Scripting / Method ## Syntax ```luau instance:IsA(className) ``` ## Class-family behaviour | Name | Type | Description | | --- | --- | --- | | `Instance` | base class | Returns true for normal hierarchy instances. | | `BasePart` | base class | Returns true for Part and SpawnLocation. | | `Concrete class` | class | Checks the exact class name, such as Model or Humanoid. | > **Note:** `Workspace:IsA()` returns true for `Workspace` and `Instance`. ## Example: Change Every BasePart ```luau for _, object in ipairs(workspace:GetDescendants()) do if object:IsA("BasePart") then object.Bevel = 0.15 end end ``` --- Source: https://docs.glorpia.com/scripting/functions/move-to Markdown: https://docs.glorpia.com/scripting/functions/move-to.md --- title: "Humanoid:MoveTo()" description: "Moves an authored NPC character Model toward a world-space position." canonical: "https://docs.glorpia.com/scripting/functions/move-to" markdown: "https://docs.glorpia.com/scripting/functions/move-to.md" --- # Humanoid:MoveTo() Moves an authored NPC character Model toward a world-space position. **Category:** Scripting / Humanoid ## Signature ```luau humanoid:MoveTo(position) ``` ## Parameters | Name | Type | Description | | --- | --- | --- | | `position` | Vector3 | World-space destination for the NPC character. | ## Behavior `MoveTo()` is an authoritative server operation. It is available to public `ServerScript` code and is rejected from public `LocalScript` code. The Humanoid must be a direct child of a valid R6-style character Model containing `Head`, `Torso`, both arms and both legs. Movement uses the Humanoid's `WalkSpeed`. NPC movement uses character-style gravity and animation. The body faces its horizontal travel direction, the R6 walk cycle plays while moving, and an unsupported NPC falls until it reaches collidable ground. > **Note:** Movement heads directly toward the requested X/Z position and stops at collidable geometry. This is not a pathfinding API. Calling `MoveTo()` also cancels an active `FollowPlayer()` target. ## Example ```luau local npc = workspace:WaitForChild("Guide") local humanoid = npc:WaitForChild("Humanoid") humanoid:MoveTo(Vector3.new(32, 0, 16)) ``` ## Related - [Humanoid](https://docs.glorpia.com/instances/humanoid.md) — Health and character movement controller. - [Humanoid:FollowPlayer()](https://docs.glorpia.com/scripting/functions/follow-player.md) — Continuously follow a moving Player. - [Humanoid:TakeDamage()](https://docs.glorpia.com/scripting/functions/take-damage.md) — Reduce authoritative Humanoid health. --- Source: https://docs.glorpia.com/scripting/functions/pivot-to Markdown: https://docs.glorpia.com/scripting/functions/pivot-to.md --- title: "PivotTo()" description: "Moves a BasePart to a target CFrame or moves and rotates a Model around its current pivot." canonical: "https://docs.glorpia.com/scripting/functions/pivot-to" markdown: "https://docs.glorpia.com/scripting/functions/pivot-to.md" --- # PivotTo() Moves a BasePart to a target CFrame or moves and rotates a Model around its current pivot. **Category:** Scripting / Pivot method ## Syntax ```luau instance:PivotTo(targetCFrame) ``` ## Parameters | Name | Type | Description | | --- | --- | --- | | `targetCFrame` | CFrame | Target world-space pivot position and rotation. | ## BasePart behavior On a Part or SpawnLocation, `PivotTo()` sets that BasePart's world-space position and rotation to the target CFrame. ```luau local part = workspace:FindFirstChild("Part") if part and part:IsA("BasePart") then part:PivotTo(CFrame.new(0, 10, 0)) end ``` ## Model behavior On a Model, `PivotTo()` moves and rotates all descendant BaseParts around the Model's current pivot. ```luau local model = workspace:FindFirstChild("Vehicle") if model and model:IsA("Model") then model:PivotTo(model:GetPivot() + Vector3.new(0, 5, 0)) end ``` > **Note:** The Model must contain at least one descendant BasePart. If a direct child named Torso exists and is a BasePart, Glorpia uses it as the pivot; otherwise it uses the first descendant BasePart it finds. ## Related - [GetPivot()](https://docs.glorpia.com/scripting/functions/get-pivot.md) — Read the current BasePart or Model pivot before moving it. - [BasePart](https://docs.glorpia.com/instances/basepart.md) — Part and SpawnLocation transform properties. - [Model](https://docs.glorpia.com/instances/model.md) — Grouped pivot behavior. --- Source: https://docs.glorpia.com/scripting/functions/raycast Markdown: https://docs.glorpia.com/scripting/functions/raycast.md --- title: "workspace:Raycast()" description: "Casts a ray through the physics world and returns the first hit." canonical: "https://docs.glorpia.com/scripting/functions/raycast" markdown: "https://docs.glorpia.com/scripting/functions/raycast.md" --- # workspace:Raycast() Casts a ray through the physics world and returns the first hit. **Category:** Scripting / Workspace method ## Syntax ```luau workspace:Raycast(origin, direction) ``` ## Parameters | Name | Type | Description | | --- | --- | --- | | `origin` | Vector3 | World-space ray start position. | | `direction` | Vector3 | Direction and maximum distance. Its magnitude becomes the cast length. | ## Return value | Name | Type | Description | | --- | --- | --- | | `Position` | Vector3 | World-space hit point. | | `Normal` | Vector3 | Surface normal at the hit. | | `Distance` | number | Distance from origin to the hit. | | `Instance` | Instance? | Hit Glorpia instance when the collider maps to one. | > **Note:** Returns `nil` when the direction is effectively zero or the ray does not hit anything. ## Example: Cast Downward ```luau local origin = Vector3.new(0, 20, 0) local direction = Vector3.new(0, -50, 0) local hit = workspace:Raycast(origin, direction) if hit then print("Hit", hit.Instance, "at", hit.Position) print("Distance", hit.Distance) end ``` --- Source: https://docs.glorpia.com/scripting/functions/scale-to Markdown: https://docs.glorpia.com/scripting/functions/scale-to.md --- title: "ScaleTo()" description: "Sets a Model to an absolute uniform scale around its current pivot." canonical: "https://docs.glorpia.com/scripting/functions/scale-to" markdown: "https://docs.glorpia.com/scripting/functions/scale-to.md" --- # ScaleTo() Sets a Model to an absolute uniform scale around its current pivot. **Category:** Scripting / Model method ## Syntax ```luau model:ScaleTo(scale) ``` ## Parameters | Name | Type | Description | | --- | --- | --- | | `scale` | number | Absolute uniform scale. Must be finite and greater than 0. | ## Behavior `ScaleTo()` scales every descendant BasePart's size and pivot-relative position while preserving rotation. Nested Models scale with their containing Model. The value is absolute rather than multiplicative. For example, `ScaleTo(2)` sets the Model to 2x even if its current scale is 1.5. > **Note:** The Model must contain at least one descendant BasePart, and resulting BasePart dimensions must remain within Glorpia's supported size range. ## Example ```luau local model = workspace:WaitForChild("Vehicle") model:ScaleTo(2) print(model:GetScale()) ``` ## Related - [GetScale()](https://docs.glorpia.com/scripting/functions/get-scale.md) — Read the current Model scale. - [GetBoundingBox()](https://docs.glorpia.com/scripting/functions/get-bounding-box.md) — Measure the scaled Model. - [Model](https://docs.glorpia.com/instances/model.md) — Model properties and methods. --- Source: https://docs.glorpia.com/scripting/functions/signals Markdown: https://docs.glorpia.com/scripting/functions/signals.md --- title: "Signals & Connect()" description: "Subscribe a Luau function to a Glorpia event and disconnect the connection when needed." canonical: "https://docs.glorpia.com/scripting/functions/signals" markdown: "https://docs.glorpia.com/scripting/functions/signals.md" --- # Signals & Connect() Subscribe a Luau function to a Glorpia event and disconnect the connection when needed. **Category:** Scripting / Events ## Connect ```luau signal:Connect(callback) ``` | Name | Type | Description | | --- | --- | --- | | `callback` | function | Function called whenever the signal fires. | | `return` | connection | Connection object for checking or disconnecting the subscription. | ## Studio autocomplete When Studio knows that a member is a signal, autocomplete inserts the signal name together with `:Connect()` and places the caret inside the parentheses. This includes `Touched` and the TextButton signals `Activated`, `MouseButton1Click`, `MouseButton1Down` and `MouseButton1Up`. ## Connection | Name | Type | Description | | --- | --- | --- | | `Connected` | boolean | True while the callback is still registered. | | `Disconnect()` | method | Removes the callback from the signal. | ## Example: Connect And Disconnect ```luau local RunService = game:GetService("RunService") local elapsed = 0 local connection connection = RunService.Heartbeat:Connect(function(deltaTime) elapsed = elapsed + deltaTime if elapsed >= 5 then connection:Disconnect() end end) ``` > **Note:** A callback is allowed to disconnect itself while the signal is firing. ## Documented signals - [BasePart.Touched](https://docs.glorpia.com/scripting/events/touched.md) — Server-authoritative or client-local physical contact events for BaseParts in Workspace. - [TextButton](https://docs.glorpia.com/instances/textbutton.md) — Activated and primary mouse-button client signals. - [Humanoid.Died](https://docs.glorpia.com/scripting/events/humanoid-died.md) — Fires when a Humanoid transitions from alive to dead. - [RunService](https://docs.glorpia.com/services/runservice.md) — PreSimulation, Stepped, Heartbeat and CoreScript RenderStepped. - [Players](https://docs.glorpia.com/services/players.md) — PlayerAdded and PlayerRemoving. - [UserInputService](https://docs.glorpia.com/services/userinputservice.md) — CoreScript InputBegan, InputChanged and InputEnded. --- Source: https://docs.glorpia.com/scripting/functions/take-damage Markdown: https://docs.glorpia.com/scripting/functions/take-damage.md --- title: "Humanoid:TakeDamage()" description: "Reduces a Humanoid's authoritative Health by a non-negative amount." canonical: "https://docs.glorpia.com/scripting/functions/take-damage" markdown: "https://docs.glorpia.com/scripting/functions/take-damage.md" --- # Humanoid:TakeDamage() Reduces a Humanoid's authoritative Health by a non-negative amount. **Category:** Scripting / Humanoid ## Syntax ```luau humanoid:TakeDamage(amount) ``` ## Availability `TakeDamage()` is an authoritative server operation and is available to public `ServerScript` code. Calling it from a public `LocalScript` is rejected. ## Parameters | Name | Type | Description | | --- | --- | --- | | `amount` | number | Amount of health to remove. Negative amounts do not heal the Humanoid. | > **Note:** The amount must be finite. Health is clamped to the Humanoid's valid health range. ## Example: Damage On Touch ```luau script.Parent.Touched:Connect(function(hit) local character = hit.Parent local humanoid = character and character:FindFirstChildWhichIsA("Humanoid") if humanoid then humanoid:TakeDamage(25) end end) ``` ## Death If the damage reduces Health to zero, the Humanoid becomes dead and its `Died` signal fires for active connections. This works for both player Humanoids and authored NPC Humanoids. A dead NPC character uses the same physics-driven R6 breakup used for player character death. NPCs are not automatically respawned. ## Related - [Humanoid](https://docs.glorpia.com/instances/humanoid.md) — Health and movement properties. - [Humanoid.Died](https://docs.glorpia.com/scripting/events/humanoid-died.md) — Run code when a Humanoid dies. - [BasePart.Touched](https://docs.glorpia.com/scripting/events/touched.md) — Detect authoritative physical contact. --- Source: https://docs.glorpia.com/scripting/functions/wait-for-child Markdown: https://docs.glorpia.com/scripting/functions/wait-for-child.md --- title: "WaitForChild()" description: "Waits until a direct child with the requested name exists, or until an optional timeout expires." canonical: "https://docs.glorpia.com/scripting/functions/wait-for-child" markdown: "https://docs.glorpia.com/scripting/functions/wait-for-child.md" --- # WaitForChild() Waits until a direct child with the requested name exists, or until an optional timeout expires. **Category:** Scripting / Method ## Syntax ```luau instance:WaitForChild(name, timeout?) ``` ## Parameters and return value | Name | Type | Description | | --- | --- | --- | | `name` | string | Exact direct-child name to wait for. | | `timeout` | number? | Optional maximum wait time in seconds. | | `return` | Instance or nil | The matching child. Returns nil when a supplied timeout expires. | > **Note:** Without a timeout, the call yields until the named direct child exists. It does not search descendants. ## Example: Wait For A Character Part ```luau local character = script.Parent local root = character:WaitForChild("HumanoidRootPart") print(root.Position) ``` ## Example: Use A Timeout ```luau local optionalPart = workspace:WaitForChild("RoundStart", 5) if optionalPart then print("RoundStart is ready") else warn("RoundStart did not appear within 5 seconds") end ``` ## Related - [FindFirstChild()](https://docs.glorpia.com/scripting/functions/find-first-child.md) — Check immediately for a named child without yielding. - [FindFirstChildWhichIsA()](https://docs.glorpia.com/scripting/functions/find-first-child-which-is-a.md) — Find a child by class or supported base class. --- Source: https://docs.glorpia.com/scripting/glorpia Markdown: https://docs.glorpia.com/scripting/glorpia.md --- title: "Glorpia" description: "Engine identity, runtime-mode, memory and player performance information exposed through the global Glorpia table." canonical: "https://docs.glorpia.com/scripting/glorpia" markdown: "https://docs.glorpia.com/scripting/glorpia.md" --- # Glorpia Engine identity, runtime-mode, memory and player performance information exposed through the global Glorpia table. **Category:** Scripting / API ## Properties | Name | Type | Description | | --- | --- | --- | | `EngineName` | string | The engine name: Glorpia. | | `EngineVersion` | string | The running Glorpia engine version. This build reports 0.2.0. | | `IsOfflineMode` | boolean | True when the current runtime is using Glorpia's offline identity. Studio Offline Mode uses PlayerID 0. | | `IsServer` | boolean | True in the authoritative server runtime. | | `IsClient` | boolean | True in a client runtime such as the Glorpia App or Studio Client View runtime. | | `EngineMemoryUsage` | string | Current process resident-memory usage formatted in MB, for example 184.27 MB. | ## GetFramesPerSecond() `Glorpia.GetFramesPerSecond()` returns a table whose keys are current `Player` instances and whose values are their most recently reported FPS numbers. ```luau for player, fps in pairs(Glorpia.GetFramesPerSecond()) do print(player.Name, fps) end ``` > **Note:** FPS is reported by each connected client at a low frequency rather than being sent every frame. A newly connected player can temporarily report `0` until the first sample arrives. ## GetEngineMemory() `Glorpia.GetEngineMemory()` returns a table containing numeric memory values in MB. | Name | Type | Description | | --- | --- | --- | | `Total` | number | Total process resident-memory usage represented by the runtime. | | `Parts` | number | Tracked memory used by live Part and SpawnLocation runtime state. | | `Scripts` | number | Tracked memory used by script state and creator script source text. | | `Instances` | number | Tracked hierarchy bookkeeping, names, child lists and other directly classified Instance data. | | `Other` | number | The remaining process memory, including unclassified engine systems such as renderer, physics, Lua VM, networking, audio, UI, loaded assets and allocator overhead. | > **Note:** `Total` is process-level memory. The subsystem rows are tracked estimates rather than allocator-level measurements, so `Other` contains memory that cannot be assigned reliably to one Glorpia subsystem. ## Example: inspect the runtime ```luau print(Glorpia.EngineName) print(Glorpia.EngineVersion) print("Server:", Glorpia.IsServer) print("Client:", Glorpia.IsClient) print("Offline:", Glorpia.IsOfflineMode) print("Memory:", Glorpia.EngineMemoryUsage) for player, fps in pairs(Glorpia.GetFramesPerSecond()) do print(player.Name, player.Platform, fps) end local memory = Glorpia.GetEngineMemory() print("Total MB:", memory.Total) print("Parts MB:", memory.Parts) print("Scripts MB:", memory.Scripts) print("Instances MB:", memory.Instances) print("Other MB:", memory.Other) ``` ## Runtime context Creator `ServerScript` code runs with `Glorpia.IsServer == true` and `Glorpia.IsClient == false`. Creator `LocalScript`s and client CoreScripts use the opposite values. In Studio Offline Mode, playtesting uses the built-in offline Player identity with `PlayerID` `0`, so `Glorpia.IsOfflineMode` is true in that playtest. ## Related - [Offline Mode](https://docs.glorpia.com/studio/offline-mode.md) — How Studio behaves without Glorpia online services. - [Public Scripts](https://docs.glorpia.com/scripting/public-scripts.md) — Creator scripting execution and permissions. - [RunService](https://docs.glorpia.com/services/runservice.md) — Per-frame signals and runtime-state methods. --- Source: https://docs.glorpia.com/scripting/public-scripts Markdown: https://docs.glorpia.com/scripting/public-scripts.md --- title: "Public Scripts" description: "Creator ServerScripts and LocalScripts with separate authoritative-server and client permission sets." canonical: "https://docs.glorpia.com/scripting/public-scripts" markdown: "https://docs.glorpia.com/scripting/public-scripts.md" --- # Public Scripts Creator ServerScripts and LocalScripts with separate authoritative-server and client permission sets. **Category:** Scripting ## Execution | Name | Type | Description | | --- | --- | --- | | `ServerScript` | server | Enabled ServerScripts under Workspace or ServerScriptService start once when discovered by the authoritative server. | | `LocalScript` | client | Enabled LocalScripts start once inside the local PlayerGui, local PlayerScripts or the local Player's Character. | | `CoreScript / CoreLocalScript` | engine only | Glorpia-owned privileged scripts. Creator scripts do not receive core permissions. | | `script` | global | Inside either public script class, script refers to the currently running script Instance. | > **Note:** StarterGui, StarterPlayerScripts and StarterCharacterScripts are templates. LocalScripts do not execute from those template trees; their runtime copies start after they are cloned into PlayerGui, PlayerScripts or the local Character. ## Client and server permissions | Name | Type | Description | | --- | --- | --- | | `UserInputService` | LocalScript | Client keyboard, mouse and cursor APIs. Requesting it from a public ServerScript is rejected. | | `RunService.RenderStepped` | LocalScript | Client render-frame signal. Public ServerScripts cannot connect to it. | | `Players.LocalPlayer` | LocalScript | The current client Player. It is nil in public ServerScripts. | | `workspace.CurrentCamera` | LocalScript | The current client Camera. Public ServerScripts see no CurrentCamera. | | `ServerScriptService / ServerStorage` | ServerScript | Server-only services. Public LocalScripts cannot request or directly access them. | | `loadstring()` | ServerScript | Disabled by default. Available only when ServerScriptService.LoadStringEnabled is enabled in Studio. LocalScripts cannot use it. | | `Workspace / Players / Lighting / ReplicatedStorage / TweenService` | both | Documented shared services available in both public contexts. | | `BasePart.Touched` | both | ServerScripts receive authoritative contacts. LocalScripts receive contacts from the client's replicated/local world, and callback changes stay local unless explicitly sent to the server. | | `Humanoid Health / WalkSpeed / JumpPower writes` | ServerScript | LocalScripts may read replicated values but cannot mutate these authoritative properties. | | `ServerScript.Enabled writes` | ServerScript | Public LocalScripts cannot change a ServerScript's Enabled property. LocalScript Enabled changes stay client-local. | | `Humanoid:TakeDamage()` | ServerScript | Authoritative damage is server-only. Humanoid.Died remains observable on both sides. | | `Humanoid:MoveTo()` | ServerScript | Authoritative NPC movement targets are server-only. | | `Humanoid:FollowPlayer()` | ServerScript | Continuous authoritative NPC following is server-only. | `Glorpia.IsServer`, `Glorpia.IsClient`, `RunService:IsServer()` and `RunService:IsClient()` report the actual side of the current runtime. ## Studio Explorer can insert `ServerScript`, `LocalScript`, `RemoteEvent` and `RemoteFunction`. Double-clicking either script class opens the same editable public script tab. Autocomplete follows the selected script type: server-only services and remote members are hidden in LocalScripts when unavailable, while client-only input, `RenderStepped`, `LocalPlayer` and client remote members are hidden in ServerScripts. Signal members such as `Touched`, `Activated`, `MouseButton1Click`, `MouseButton1Down` and `MouseButton1Up` are completed as `:Connect()` calls with the caret placed inside the parentheses. ## RemoteEvent ```luau -- LocalScript local event = game.ReplicatedStorage:WaitForChild("ActionEvent") event:FireServer("JumpButton") ``` ```luau -- ServerScript local event = game.ReplicatedStorage:WaitForChild("ActionEvent") event.OnServerEvent:Connect(function(player, action) print(player.Name, action) event:FireClient(player, "Accepted") end) ``` Use `FireAllClients(...)` to broadcast from the server. LocalScripts receive server messages through `OnClientEvent`. ## RemoteFunction ```luau -- ServerScript local getRound = game.ReplicatedStorage:WaitForChild("GetRound") getRound.OnServerInvoke = function(player) return 3, "Playing" end ``` ```luau -- LocalScript local getRound = game.ReplicatedStorage:WaitForChild("GetRound") local round, state = getRound:InvokeServer() print(round, state) ``` ServerScripts can use `InvokeClient(player, ...)` with a client's `OnClientInvoke` callback. ## Shared creator APIs Both public script contexts use the documented hierarchy API, datatypes, task/math helpers, supported Instances and shared services. `Instance.new()` supports script objects, GUI objects, Lighting effects, Humanoid, RemoteEvent, RemoteFunction, BasicSound, Parts, values and containers. Server-side world changes remain authoritative and replicate through the supported network state. LocalScript-only changes remain client-local unless sent to the server through a RemoteEvent or RemoteFunction. ## Script output `print(...)` writes Information and `warn(...)` writes Warning. During Studio Play, output from the client runtime is marked `CLIENT`. ## Related - [ServerScript](https://docs.glorpia.com/instances/serverscript.md) — Authoritative creator script class. - [LocalScript](https://docs.glorpia.com/instances/localscript.md) — Client creator script class. - [RemoteEvent](https://docs.glorpia.com/instances/remoteevent.md) — One-way client/server communication. - [RemoteFunction](https://docs.glorpia.com/instances/remotefunction.md) — Request/response client/server communication. - [ReplicatedStorage](https://docs.glorpia.com/services/replicatedstorage.md) — Shared hierarchy for remotes and other supported instances. - [UserInputService](https://docs.glorpia.com/services/userinputservice.md) — Client-only public input API. - [RunService](https://docs.glorpia.com/services/runservice.md) — Client and server frame signals. - [ServerScriptService](https://docs.glorpia.com/services/serverscriptservice.md) — Server-side script container. - [ServerStorage](https://docs.glorpia.com/services/serverstorage.md) — Server-only stored hierarchy. --- Source: https://docs.glorpia.com/scripting/utilities Markdown: https://docs.glorpia.com/scripting/utilities.md --- title: "Math & Task Utilities" description: "Random numbers, coherent noise and basic timing helpers available to Glorpia Luau." canonical: "https://docs.glorpia.com/scripting/utilities" markdown: "https://docs.glorpia.com/scripting/utilities.md" --- # Math & Task Utilities Random numbers, coherent noise and basic timing helpers available to Glorpia Luau. **Category:** Scripting / API ## Infinity ```luau inf ``` `inf` is the positive-infinity numeric value. Use `-inf` for negative infinity. Scalar number properties can use infinity when their property range permits it. Integer properties convert infinity to the corresponding integer limit. ## math.random() ```luau math.random() ``` ```luau math.random(max) ``` ```luau math.random(min, max) ``` | Name | Type | Description | | --- | --- | --- | | `no arguments` | number | Returns a pseudo-random number from 0 up to but not including 1. | | `max` | integer | Returns an integer from 1 through max. | | `min, max` | integer | Returns an integer in the inclusive range. | ```luau local roll = math.random(1, 6) print("Rolled", roll) ``` ## math.noise() ```luau math.noise(x, y?, z?) ``` Returns deterministic, smoothly interpolated coherent noise in approximately the -1 to 1 range. Missing Y or Z coordinates default to 0. ```luau for x = 0, 5 do local value = math.noise(x * 0.15, 0, 0) print(x, value) end ``` ## task.wait() ```luau task.wait(seconds?) ``` | Name | Type | Description | | --- | --- | --- | | `seconds` | number? | Requested delay. Defaults to about one frame. | | `return` | number | Actual elapsed wait time in seconds. | ```luau print("before") task.wait(0.5) print("after") ``` --- Source: https://docs.glorpia.com/services Markdown: https://docs.glorpia.com/services.md --- title: "Services" description: "Engine-wide objects that expose world, timing, input, player, lighting, hierarchy storage and animation systems." canonical: "https://docs.glorpia.com/services" markdown: "https://docs.glorpia.com/services.md" --- # Services Engine-wide objects that expose world, timing, input, player, lighting, hierarchy storage and animation systems. **Category:** Services ## Available services - [Workspace](https://docs.glorpia.com/services/workspace.md) — World hierarchy, CurrentCamera and physics raycasts. - [Lighting](https://docs.glorpia.com/services/lighting.md) — Brightness, time-of-day and world post-processing controls. - [RunService](https://docs.glorpia.com/services/runservice.md) — Per-frame simulation and render signals plus runtime-state queries. - [UserInputService](https://docs.glorpia.com/services/userinputservice.md) — Keyboard, mouse and cursor behaviour for CoreScripts. - [Players](https://docs.glorpia.com/services/players.md) — LocalPlayer, PlayerID, player lookup and player signals. - [TweenService](https://docs.glorpia.com/services/tweenservice.md) — Property animation with TweenInfo and easing. - [DebrisService](https://docs.glorpia.com/services/debrisservice.md) — Schedules temporary Instances for delayed destruction. - [ServerScriptService](https://docs.glorpia.com/services/serverscriptservice.md) — Server-side container where enabled ServerScripts start once when discovered. - [ServerStorage](https://docs.glorpia.com/services/serverstorage.md) — Server-only hierarchy excluded from normal client replication. - [StarterGui](https://docs.glorpia.com/services/startergui.md) — Template GUI hierarchy cloned into each runtime PlayerGui. - [StarterPlayer](https://docs.glorpia.com/services/starterplayer.md) — Owns StarterPlayerScripts and StarterCharacterScripts templates. - [ReplicatedStorage](https://docs.glorpia.com/services/replicatedstorage.md) — Shared stored hierarchy for supported instances replicated to clients. ## Accessing services `game:GetService()` provides `Workspace`, `RunService`, `UserInputService`, `Players`, `Lighting`, `TweenService`, `DebrisService`, `ServerScriptService`, `ServerStorage`, `StarterGui`, `StarterPlayer` and `ReplicatedStorage`. ```luau local Workspace = game:GetService("Workspace") local Lighting = game:GetService("Lighting") local TweenService = game:GetService("TweenService") local DebrisService = game:GetService("DebrisService") local ServerScriptService = game:GetService("ServerScriptService") local ServerStorage = game:GetService("ServerStorage") local StarterGui = game:GetService("StarterGui") local StarterPlayer = game:GetService("StarterPlayer") local ReplicatedStorage = game:GetService("ReplicatedStorage") ``` > **Note:** `workspace` and `game.Workspace` refer to the same Workspace service. Players, Lighting, DebrisService, ServerScriptService, ServerStorage, StarterGui, StarterPlayer and ReplicatedStorage are also available as direct properties on `game`. ## Hierarchy storage rules `ServerScriptService`, `ServerStorage`, `StarterGui`, `StarterPlayer` and `ReplicatedStorage` are protected service roots. The roots cannot be renamed, destroyed, dragged or reparented, while supported child instances can be stored beneath them. Parts and BasicSounds only participate in the live world when they are under Workspace. StarterGui and StarterPlayer are template trees: their LocalScripts stay inactive there and run only after their runtime copies are cloned into PlayerGui, PlayerScripts or a Character. ServerScriptService and ServerStorage are excluded from normal client replication. Supported ReplicatedStorage descendants use normal server-to-client replication. --- Source: https://docs.glorpia.com/services/debrisservice Markdown: https://docs.glorpia.com/services/debrisservice.md --- title: "DebrisService" description: "Schedules Instances to be destroyed after a delay without blocking the current script." canonical: "https://docs.glorpia.com/services/debrisservice" markdown: "https://docs.glorpia.com/services/debrisservice.md" --- # DebrisService Schedules Instances to be destroyed after a delay without blocking the current script. **Category:** Services ## Access ```luau local DebrisService = game:GetService("DebrisService") ``` > **Note:** `game:GetService("Debris")` and `game.Debris` are compatibility aliases for the same service. ## Members | Name | Type | Description | | --- | --- | --- | | `Name` | string | DebrisService. | | `ClassName` | string | DebrisService. | | `AddItem(instance, lifetime)` | method | Schedules the Instance to be destroyed after lifetime seconds. If lifetime is omitted, it defaults to 10 seconds. | ## AddItem() ```luau DebrisService:AddItem(instance, lifetime?) ``` `AddItem()` returns immediately. Destruction is scheduled through the runtime task scheduler, so the current script does not wait for the lifetime to expire. A negative lifetime is treated as `0`. The lifetime must be a finite number. If the Instance has already been destroyed when the timer expires, the cleanup attempt is ignored. ## Example ```luau local DebrisService = game:GetService("DebrisService") local part = Instance.new("Part") part.Name = "TemporaryPart" part.Parent = workspace DebrisService:AddItem(part, 5) ``` ## Related - [Destroy()](https://docs.glorpia.com/scripting/functions/destroy.md) — Destroy an Instance immediately. - [Tasks and Utilities](https://docs.glorpia.com/scripting/utilities.md) — task.wait(), task.delay(), task.spawn() and other timing helpers. --- Source: https://docs.glorpia.com/services/lighting Markdown: https://docs.glorpia.com/services/lighting.md --- title: "Lighting" description: "Controls scene lighting, time of day and world post-processing effects." canonical: "https://docs.glorpia.com/services/lighting" markdown: "https://docs.glorpia.com/services/lighting.md" --- # Lighting Controls scene lighting, time of day and world post-processing effects. **Category:** Services ## Access ```luau local Lighting = game:GetService("Lighting") ``` ## Properties | Name | Type | Description | | --- | --- | --- | | `Brightness` | number | Read/write brightness. Values are clamped from 0 to 10. | | `ClockTime` | number | Read/write hour value. Values wrap around a 24-hour day. | | `TimeOfDay` | string | Read/write HH:MM or HH:MM:SS time text. | ## Children and post-processing Lighting can contain ordinary replicated Instances. `BlurEffect` and `ColourCorrection` become active post-processing effects when they are direct children of Lighting. `ColorCorrection` and `ColorCorrectionEffect` are accepted American-spelling aliases for `ColourCorrection`. Post-processing is applied to the rendered 3D scene, including BillboardGui and SurfaceGui when `AlwaysOnTop` is false. ScreenGui and world GUI with `AlwaysOnTop = true` are composited afterward, so they remain sharp and bypass BlurEffect and ColourCorrection. Authored children placed under Lighting are saved with the place. Parts below Lighting remain in the hierarchy but are not rendered or simulated because world rendering and physics require Workspace ancestry. ## Studio Properties Studio's Properties panel shows `TimeOfDay` as an `HH:MM:SS` text box. `ClockTime` is the numeric 0-24 hour control with a slider and number field. Editing either property updates the same scene time. The Explorer Insert menu has a dedicated **Lighting** category for `BlurEffect` and `ColourCorrection`. ## Example: Create An Evening Scene ```luau local Lighting = game:GetService("Lighting") Lighting.Brightness = 2.5 Lighting.TimeOfDay = "18:30:00" ``` > **Note:** Reading `TimeOfDay` returns a zero-padded `HH:MM:SS` string. ## Related effects - [BlurEffect](https://docs.glorpia.com/instances/blureffect.md) — Full-resolution Gaussian blur for the 3D scene and depth-tested world GUI. - [ColourCorrection](https://docs.glorpia.com/instances/colourcorrection.md) — Adjusts world brightness, contrast, saturation and tint. --- Source: https://docs.glorpia.com/services/players Markdown: https://docs.glorpia.com/services/players.md --- title: "Players" description: "Access the current player list, the local player, and player join/leave signals." canonical: "https://docs.glorpia.com/services/players" markdown: "https://docs.glorpia.com/services/players.md" --- # Players Access the current player list, the local player, and player join/leave signals. **Category:** Services ## Access ```luau local Players = game:GetService("Players") ``` ## Members | Name | Type | Description | | --- | --- | --- | | `LocalPlayer` | Player or nil | The local Player when one exists. Online Studio playtests use the signed-in account. Offline Studio playtests use Player with PlayerID 0. | | `PlayerAdded` | signal | Fires when a Player is surfaced to the runtime and passes that Player. | | `PlayerRemoving` | signal | Fires when a Player is removed and passes that Player. | | `GetPlayers()` | table | Returns only current Player instances in a 1-indexed table, even when Players contains other child classes. | | `GetChildren()` | table | Returns every direct child, including Player instances and other classes parented to Players. | | `FindFirstChild(name)` | Instance or nil | Finds any direct child by name. | | `Players.ChildName` | Instance or nil | Missing service fields resolve direct children by name, for example game.Players.Player in an offline playtest. | > **Note:** Player instances expose read-only `PlayerID`, `Platform` and `FramesPerSecond` properties. Studio shows all three in the Properties panel while playtesting. Players can also contain authored ordinary Instances. Those authored children keep their hierarchy and are saved with the place, while runtime Player/PlayerGui/PlayerScripts/Character trees remain session-only and are never written into the authored place file. Parts stored below Players are not rendered or simulated because they are not descendants of Workspace. ## Example: Get The Local Humanoid ```luau local Players = game:GetService("Players") local player = Players.LocalPlayer if player then print(player.PlayerID) print(player.Platform, player.FramesPerSecond) end if player and player.Character then local humanoid = player.Character:FindFirstChild("Humanoid") if humanoid then humanoid.WalkSpeed = 20 end end ``` ## Example: react to PlayerAdded ```luau local Players = game:GetService("Players") Players.PlayerAdded:Connect(function(player) print(player.Name, player.PlayerID) end) ``` > **Note:** The playtest Player already exists before creator ServerScripts start, so Glorpia surfaces it through `PlayerAdded` after scripts have had a chance to connect listeners. ## Studio Client and Server views Players and the live Character hierarchy remain visible in both runtime views. Client view also exposes the local client CoreScripts. Server view hides CoreScripts while keeping Player, Character, Humanoid and body parts available for inspection. ## Related - [Player](https://docs.glorpia.com/instances/player.md) — Player properties including PlayerID and Character. - [Humanoid](https://docs.glorpia.com/instances/humanoid.md) — Character movement and health. - [Client/Server Playtesting](https://docs.glorpia.com/studio/playtesting.md) — Runtime authority and Studio view switching. - [Offline Mode](https://docs.glorpia.com/studio/offline-mode.md) — Offline playtests use Player with PlayerID 0. --- Source: https://docs.glorpia.com/services/replicatedstorage Markdown: https://docs.glorpia.com/services/replicatedstorage.md --- title: "ReplicatedStorage" description: "A protected hierarchy service for stored instances that are shared with clients when their instance type is supported by replication." canonical: "https://docs.glorpia.com/services/replicatedstorage" markdown: "https://docs.glorpia.com/services/replicatedstorage.md" --- # ReplicatedStorage A protected hierarchy service for stored instances that are shared with clients when their instance type is supported by replication. **Category:** Services ## Access ```luau local ReplicatedStorage = game:GetService("ReplicatedStorage") print(ReplicatedStorage == game.ReplicatedStorage) ``` ## Behaviour | Name | Type | Description | | --- | --- | --- | | `Client replication` | supported descendants | Supported descendants use normal server-to-client hierarchy replication. | | `World rendering` | not in Workspace | Parts stored here are not rendered as Workspace geometry. | | `World physics` | not in Workspace | Parts stored here are not included in Workspace physics. | | `BasicSound playback` | inactive while stored | BasicSound outside Workspace is not played until it is moved into Workspace. | | `Script execution` | dormant while stored | ServerScripts and LocalScripts stored here do not execute from ReplicatedStorage in the current runtime. | | `RemoteEvent / RemoteFunction` | replicated | Use remotes here when both ServerScripts and LocalScripts need to resolve the same shared remote instance. | ## Hierarchy API ReplicatedStorage is a protected service root. The service itself cannot be renamed, destroyed, dragged, or reparented, but supported child instances can be parented into it. | Name | Type | Description | | --- | --- | --- | | `FindFirstChild(name, recursive?)` | method | Finds a child by name and can search descendants when recursive is true. | | `FindFirstChildOfClass(className)` | method | Finds the first direct child with the exact class name. | | `GetChildren()` | method | Returns direct children. | | `GetDescendants()` | method | Returns every descendant. | | `IsA(className)` | method | Returns true for ReplicatedStorage or Instance as appropriate. | | `GetFullName()` | method | Returns the hierarchy name for the service. | ## Example: shared stored hierarchy ```luau local ReplicatedStorage = game:GetService("ReplicatedStorage") local folder = Instance.new("Folder") folder.Name = "SharedObjects" folder.Parent = ReplicatedStorage local part = Instance.new("Part") part.Name = "TemplatePart" part.Parent = folder ``` > **Note:** The Part is stored in the replicated hierarchy, but it does not become world geometry until it is parented under Workspace. ## Related - [ServerScriptService](https://docs.glorpia.com/services/serverscriptservice.md) — Server-side container where enabled ServerScripts start once when discovered. - [ServerStorage](https://docs.glorpia.com/services/serverstorage.md) — Server-only stored hierarchy excluded from client replication. - [RemoteEvent](https://docs.glorpia.com/instances/remoteevent.md) — One-way communication between client and server scripts. - [RemoteFunction](https://docs.glorpia.com/instances/remotefunction.md) — Request/response communication between client and server scripts. - [game:GetService()](https://docs.glorpia.com/scripting/functions/get-service.md) — Access registered Glorpia services by name. --- Source: https://docs.glorpia.com/services/runservice Markdown: https://docs.glorpia.com/services/runservice.md --- title: "RunService" description: "Per-frame signals and runtime-state queries for simulation and rendering work." canonical: "https://docs.glorpia.com/services/runservice" markdown: "https://docs.glorpia.com/services/runservice.md" --- # RunService Per-frame signals and runtime-state queries for simulation and rendering work. **Category:** Services ## Access ```luau local RunService = game:GetService("RunService") ``` ## Signals | Name | Type | Description | | --- | --- | --- | | `PreSimulation` | signal | Fires before the runtime steps character physics and passes deltaTime. | | `Stepped` | signal | Receives scheduler time and deltaTime before the physics step. | | `Heartbeat` | signal | Receives deltaTime after the physics step. | | `RenderStepped` | client signal | Fires once per rendered client frame. Available to LocalScripts and CoreScripts, not ServerScripts. | ## Methods | Name | Type | Description | | --- | --- | --- | | `IsServer()` | boolean | Returns true when this Luau runtime is the authoritative server. | | `IsClient()` | boolean | Returns true when this Luau runtime is a client. | | `IsRunning()` | boolean | Returns true while the runtime is active. | ## LocalScript example ```luau local RunService = game:GetService("RunService") RunService.RenderStepped:Connect(function(deltaTime) -- Client-only render work end) ``` > **Note:** Public ServerScripts can use `PreSimulation`, `Stepped` and `Heartbeat`. `RenderStepped` is client-only. ## Related - [LocalScript](https://docs.glorpia.com/instances/localscript.md) — Public client-side creator scripting. - [ServerScript](https://docs.glorpia.com/instances/serverscript.md) — Authoritative creator scripting. - [Signals & Connect()](https://docs.glorpia.com/scripting/functions/signals.md) — Connect callbacks, inspect connections and disconnect them. --- Source: https://docs.glorpia.com/services/serverscriptservice Markdown: https://docs.glorpia.com/services/serverscriptservice.md --- title: "ServerScriptService" description: "A protected server-side hierarchy service for authoritative ServerScripts and other stored instances." canonical: "https://docs.glorpia.com/services/serverscriptservice" markdown: "https://docs.glorpia.com/services/serverscriptservice.md" --- # ServerScriptService A protected server-side hierarchy service for authoritative ServerScripts and other stored instances. **Category:** Services ## Access ```luau local ServerScriptService = game:GetService("ServerScriptService") print(ServerScriptService == game.ServerScriptService) ``` ## Security | Name | Type | Description | | --- | --- | --- | | `LoadStringEnabled` | boolean | Defaults to false. When enabled in Studio, public ServerScripts may use loadstring(). LocalScripts remain blocked. | `LoadStringEnabled` is configured in Studio Properties and saved with the place. Creator scripts cannot change it at runtime. > **Note:** Keep LoadStringEnabled disabled unless a game specifically requires dynamic server-side Luau compilation. Code compiled by loadstring() keeps the same public ServerScript environment and permissions as the script that compiled it. ## ServerScript execution Enabled creator `ServerScript` instances under ServerScriptService are discovered by the authoritative server and start once when they become runnable. | Name | Type | Description | | --- | --- | --- | | `Enabled ServerScript` | executes once | Runs as public creator server code when discovered under ServerScriptService. | | `Runtime-created or moved ServerScript` | discovered | An enabled script starts once after it enters a valid server execution location. | | `Client replication` | excluded | The ServerScriptService tree is not included in normal client replication. | > **Note:** ServerScripts under Workspace follow the same discovery rule. ServerScripts stored under ServerStorage, ReplicatedStorage, StarterGui or StarterPlayer remain dormant there. ## Hierarchy API The service root is protected and cannot be renamed, destroyed, dragged, or reparented. Supported instances can be inserted or parented beneath it. | Name | Type | Description | | --- | --- | --- | | `FindFirstChild(name, recursive?)` | method | Finds a child by name. | | `FindFirstChildOfClass(className)` | method | Finds the first direct child with the exact class name. | | `GetChildren()` | method | Returns direct children. | | `GetDescendants()` | method | Returns every descendant. | | `IsA(className)` | method | Checks the service class or Instance base class. | | `GetFullName()` | method | Returns ServerScriptService. | ## Example ```luau local ServerScriptService = game:GetService("ServerScriptService") local scripts = ServerScriptService:GetChildren() for _, child in ipairs(scripts) do print(child.Name, child.ClassName) end ``` ## Related - [ServerScript](https://docs.glorpia.com/instances/serverscript.md) — Creator-authored authoritative server code. - [Public Scripts](https://docs.glorpia.com/scripting/public-scripts.md) — Runtime capabilities and execution rules for ServerScripts and LocalScripts. - [ServerStorage](https://docs.glorpia.com/services/serverstorage.md) — Server-only storage where scripts stay dormant. --- Source: https://docs.glorpia.com/services/serverstorage Markdown: https://docs.glorpia.com/services/serverstorage.md --- title: "ServerStorage" description: "A protected server-only hierarchy service for instances that should not be part of the normal client-replicated tree." canonical: "https://docs.glorpia.com/services/serverstorage" markdown: "https://docs.glorpia.com/services/serverstorage.md" --- # ServerStorage A protected server-only hierarchy service for instances that should not be part of the normal client-replicated tree. **Category:** Services ## Access ```luau local ServerStorage = game:GetService("ServerStorage") print(ServerStorage == game.ServerStorage) ``` ## Behaviour | Name | Type | Description | | --- | --- | --- | | `Client replication` | excluded | The ServerStorage tree is excluded from normal client replication. | | `World rendering` | not in Workspace | Parts stored here are not rendered as Workspace geometry. | | `World physics` | not in Workspace | Parts stored here are not included in Workspace physics. | | `BasicSound playback` | inactive while stored | BasicSound outside Workspace is not played until moved into Workspace. | | `ServerScript execution` | dormant while stored | ServerScripts do not execute while stored under ServerStorage. | ## Hierarchy API The service root cannot be renamed, destroyed, dragged, or reparented. Supported child instances can be inserted, parented, moved, and removed normally. | Name | Type | Description | | --- | --- | --- | | `FindFirstChild(name, recursive?)` | method | Finds a child by name. | | `FindFirstChildOfClass(className)` | method | Finds the first direct child with the exact class name. | | `GetChildren()` | method | Returns direct children. | | `GetDescendants()` | method | Returns every descendant. | | `IsA(className)` | method | Checks the service class or Instance base class. | | `GetFullName()` | method | Returns ServerStorage. | ## Example: move a stored template into Workspace ```luau local ServerStorage = game:GetService("ServerStorage") local template = ServerStorage:FindFirstChild("TemplatePart") if template then template.Parent = workspace end ``` > **Note:** Once a Part is parented into Workspace, it becomes part of the live world hierarchy and can participate in rendering and physics. ## Related - [ServerScriptService](https://docs.glorpia.com/services/serverscriptservice.md) — Authoritative script container. - [ReplicatedStorage](https://docs.glorpia.com/services/replicatedstorage.md) — Shared stored hierarchy for supported replicated instances. - [Public Scripts](https://docs.glorpia.com/scripting/public-scripts.md) — Current creator scripting capabilities and client/server permission boundaries. --- Source: https://docs.glorpia.com/services/startergui Markdown: https://docs.glorpia.com/services/startergui.md --- title: "StarterGui" description: "The authored template hierarchy copied into every Player's PlayerGui." canonical: "https://docs.glorpia.com/services/startergui" markdown: "https://docs.glorpia.com/services/startergui.md" --- # StarterGui The authored template hierarchy copied into every Player's PlayerGui. **Category:** Services ## Runtime behaviour StarterGui is a protected service root. Its children are templates: they are copied into a new PlayerGui when a Player is created. LocalScripts stored in StarterGui do not run from the template. Their runtime copies inside the local PlayerGui run on that client. On character respawn, ScreenGuis with `ResetOnSpawn = true` are recreated from this template. ScreenGuis with `ResetOnSpawn = false` persist in PlayerGui. > **Note:** Studio can preview StarterGui with the Development UI toggle, but play-mode rendering comes from PlayerGui. ## Related - [PlayerGui](https://docs.glorpia.com/instances/playergui.md) — Runtime clone destination for StarterGui. - [ScreenGui](https://docs.glorpia.com/instances/screengui.md) — Screen-space GUI root. - [LocalScript](https://docs.glorpia.com/instances/localscript.md) — Client script execution rules. --- Source: https://docs.glorpia.com/services/starterplayer Markdown: https://docs.glorpia.com/services/starterplayer.md --- title: "StarterPlayer" description: "Owns the player-script and character-script template containers." canonical: "https://docs.glorpia.com/services/starterplayer" markdown: "https://docs.glorpia.com/services/starterplayer.md" --- # StarterPlayer Owns the player-script and character-script template containers. **Category:** Services ## Children StarterPlayer contains the protected `StarterPlayerScripts` and `StarterCharacterScripts` containers. StarterPlayerScripts is copied into every Player's PlayerScripts. StarterCharacterScripts is copied into each newly spawned character. > **Note:** Scripts in the template containers remain inactive until a runnable LocalScript copy exists in the local PlayerScripts or local character. ## Related - [StarterPlayerScripts](https://docs.glorpia.com/instances/starterplayerscripts.md) — Template for PlayerScripts. - [StarterCharacterScripts](https://docs.glorpia.com/instances/startercharacterscripts.md) — Template for spawned characters. - [PlayerScripts](https://docs.glorpia.com/instances/playerscripts.md) — Per-Player runtime client-script container. --- Source: https://docs.glorpia.com/services/tweenservice Markdown: https://docs.glorpia.com/services/tweenservice.md --- title: "TweenService" description: "Animates supported Instance properties over time using easing." canonical: "https://docs.glorpia.com/services/tweenservice" markdown: "https://docs.glorpia.com/services/tweenservice.md" --- # TweenService Animates supported Instance properties over time using easing. **Category:** Services ## Accessing TweenService ```luau local TweenService = game:GetService("TweenService") ``` ## GetValue ```luau TweenService:GetValue(alpha, easingStyle?, easingDirection?) ``` | Name | Type | Description | | --- | --- | --- | | `alpha` | number | Input progress. Values are clamped to the 0 through 1 range. | | `easingStyle` | Enum.EasingStyle? | Easing curve. Defaults to Quad. | | `easingDirection` | Enum.EasingDirection? | Easing direction. Defaults to Out. | | `return` | number | Eased progress value for the selected curve and direction. | ```luau local TweenService = game:GetService("TweenService") local eased = TweenService:GetValue(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut) print(eased) ``` ## Create ```luau TweenService:Create(instance, tweenInfo, goals) ``` | Name | Type | Description | | --- | --- | --- | | `instance` | Instance | Instance to animate. | | `tweenInfo` | TweenInfo | Duration, easing, repeat, reverse and delay settings. | | `goals` | table | Property names mapped to target values. | | `return` | Tween | Tween object controlled with Play(), Pause(), Cancel() and Destroy(). | ## TweenInfo ```luau TweenInfo.new(time, easingStyle?, easingDirection?, repeatCount?, reverses?, delayTime?) ``` | Name | Type | Description | | --- | --- | --- | | `Time` | number | Duration of one direction of the tween. | | `EasingStyle` | Enum.EasingStyle | Linear, Quad, Cubic, Quart, Sine, Back or Bounce. | | `EasingDirection` | Enum.EasingDirection | In, Out or InOut. | | `RepeatCount` | integer | Additional cycles. A negative value repeats indefinitely. | | `Reverses` | boolean | Runs back toward the starting values after reaching the goals. | | `DelayTime` | number | Delay before each cycle starts. | ## Example: Move A Part ```luau local TweenService = game:GetService("TweenService") local part = workspace:FindFirstChild("Part") if part then local tween = TweenService:Create( part, TweenInfo.new(1.5, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut), { Position = part.Position + Vector3.new(0, 8, 0) } ) tween:Play() end ``` > **Note:** Numbers, Vector values and CFrames interpolate over time. Other writable values are assigned when the tween reaches the end. ## Tween members | Name | Type | Description | | --- | --- | --- | | `Play()` | method | Starts a new run or resumes a paused tween. | | `Pause()` | method | Pauses an active tween. | | `Cancel()` | method | Stops an active tween and marks it Cancelled. | | `Destroy()` | method | Cancels the tween. | | `Completed` | signal | Fires with the final playback state when the tween completes or is cancelled. | | `PlaybackState` | Enum.PlaybackState | Current tween state. | --- Source: https://docs.glorpia.com/services/userinputservice Markdown: https://docs.glorpia.com/services/userinputservice.md --- title: "UserInputService" description: "Keyboard, mouse and cursor input for client-side Glorpia scripts." canonical: "https://docs.glorpia.com/services/userinputservice" markdown: "https://docs.glorpia.com/services/userinputservice.md" --- # UserInputService Keyboard, mouse and cursor input for client-side Glorpia scripts. **Category:** Services ## Access ```luau local UserInputService = game:GetService("UserInputService") ``` > **Note:** `UserInputService` is available to public `LocalScript`s and Glorpia CoreScripts. Public `ServerScript`s receive a runtime permission error if they request it. ## Signals and properties | Name | Type | Description | | --- | --- | --- | | `InputBegan` | signal | Fires when a supported keyboard or mouse button input begins. | | `InputChanged` | signal | Fires for mouse movement and mouse wheel input. | | `InputEnded` | signal | Fires when a supported keyboard or mouse button input ends. | | `MouseBehavior` | Enum.MouseBehavior | Read/write cursor behaviour. | ## Methods | Name | Type | Description | | --- | --- | --- | | `IsKeyDown(key)` | boolean | Checks whether a supported Enum.KeyCode is currently held. | | `GetMouseDelta()` | Vector2 | Returns accumulated mouse movement for the current frame. | | `IsMouseButtonPressed(type)` | boolean | Checks MouseButton1, MouseButton2 or MouseButton3. | ## Example: React To Space ```luau local UserInputService = game:GetService("UserInputService") UserInputService.InputBegan:Connect(function(input, gameProcessed) if input.KeyCode == Enum.KeyCode.Space then print("Space pressed") end end) ``` > **Note:** Input events pass `false` as the second signal argument in the current runtime. `Enum.KeyCode` includes the Roblox-style computer keyboard names; gamepad and touch key codes are not part of this keyboard-only pass. ## Related - [LocalScript](https://docs.glorpia.com/instances/localscript.md) — Creator client scripts that can read user input. - [Enums & Input](https://docs.glorpia.com/scripting/enums.md) — Supported key codes, input types, input states and mouse behaviours. - [Signals & Connect()](https://docs.glorpia.com/scripting/functions/signals.md) — How to connect and disconnect event callbacks. --- Source: https://docs.glorpia.com/services/workspace Markdown: https://docs.glorpia.com/services/workspace.md --- title: "Workspace" description: "The root of the live world hierarchy and the home of the current Camera and physics raycasts." canonical: "https://docs.glorpia.com/services/workspace" markdown: "https://docs.glorpia.com/services/workspace.md" --- # Workspace The root of the live world hierarchy and the home of the current Camera and physics raycasts. **Category:** Services ## Access ```luau local Workspace = game:GetService("Workspace") print(Workspace == game.Workspace) print(Workspace == workspace) ``` > **Note:** `workspace`, `game.Workspace`, and `game:GetService("Workspace")` all expose the same Workspace service. ## Members | Name | Type | Description | | --- | --- | --- | | `CurrentCamera` | client Camera | The active client Camera object. It is unavailable to public ServerScripts. | | `Raycast(origin, direction)` | method | Casts through physics. The direction vector's length is the maximum cast distance. | | `FindFirstChild(name, recursive?)` | method | Finds a child or descendant. | | `FindFirstChildOfClass(className)` | method | Finds the first direct child with the exact ClassName. | | `GetChildren()` | method | Returns direct children. | | `GetDescendants()` | method | Returns all descendants. | | `IsA(className)` | method | Returns true for Workspace and Instance. | | `GetFullName()` | method | Returns Workspace. | ## Hierarchy and rendering Workspace ancestry determines whether physical Parts belong to the live rendered world. A Part does not need to be a direct Workspace child: it can be nested beneath Camera, Humanoid, another Part, a Value object, Model, Folder or another Instance and still render and participate in world physics while it remains a Workspace descendant. Workspace also resolves direct child names through indexing, so `workspace.Part` can access a direct child named Part. For optional objects, `FindFirstChild()` is safer because it clearly returns nil when missing. ## Related pages - [workspace:Raycast()](https://docs.glorpia.com/scripting/functions/raycast.md) — Detailed raycast return values and examples. - [FindFirstChildOfClass()](https://docs.glorpia.com/scripting/functions/find-first-child-of-class.md) — Find a direct Workspace child by exact class name. - [Camera](https://docs.glorpia.com/instances/camera.md) — CurrentCamera CFrame and FieldOfView. --- Source: https://docs.glorpia.com/studio/getting-started Markdown: https://docs.glorpia.com/studio/getting-started.md --- title: "Getting Started" description: "A quick tour of the Glorpia Studio workflow." canonical: "https://docs.glorpia.com/studio/getting-started" markdown: "https://docs.glorpia.com/studio/getting-started.md" --- # Getting Started A quick tour of the Glorpia Studio workflow. **Category:** Studio ## Editor layout The centre viewport is where you select and transform the place. Properties are on the left and Explorer is on the right. The toolbar contains Select, Move, Scale, Rotate, insertion actions including Part and Rig, undo/redo, snap values and Play/Stop. ![Glorpia Studio showing the toolbar, Properties panel, 3D viewport and Explorer](https://docs.glorpia.com/images/studio/studio-overview.png) *The main Glorpia Studio workspace. Properties are on the left, the 3D viewport is in the centre, and Explorer is on the right.* ## Selecting and transforming Select a part in the viewport or Explorer. Use Move for axis translation, Scale for axis sizing and Rotate for axis rotation. Move, Scale and rotation increments can be changed directly in the toolbar. Move/Scale snapping applies to the drag delta, so changing increments does not erase an existing fractional position or size component. Move uses arrow-shaped handles, Scale uses sphere handles with stems, and Rotate uses circular rings. The gizmos keep a stable screen-space size as the camera moves closer or farther away. See [Parts & Properties](https://docs.glorpia.com/studio/parts.md) for visual examples of selection, transform gizmos and multi-selection. > **Note:** Shape is stored in Transform. Anchored and CanCollide are grouped under Behaviour. Bevel and its mesh controls are grouped under Modifiers. ## Explorer and Properties Explorer represents the instance tree. The Properties panel edits the selected instance. Part properties include shape, size, transform, colour, transparency, anchoring, collision and edge rounding controls. Dragging an editable Explorer instance shows a floating row preview under the pointer and an indented destination marker. Ordinary instances can be reparented freely; runtime context decides whether a child renders, simulates or executes. Runtime Player instances expose `Name`, `ClassName`, the read-only numeric `PlayerID`, and `Character`. Online Studio playtests use the signed-in account identity; offline playtests use `Player` with `PlayerID` `0`. ## Development UI editing The **Dev UI** toolbar toggle controls whether edit-time ScreenGui content is visible in the viewport. With Select active, drag a visible Frame, TextLabel or TextButton directly in a ScreenGui preview to reposition it. The first direct drag converts the GUI object to a centred `AnchorPoint` and Scale-based `Position`/`Size` with zero offsets, so the edited layout remains responsive across screen resolutions. ## Studio freecam Edit mode and Server view use the same smooth Studio freecam. Hold right mouse to look around, use W A S D to fly, use Q/E to move vertically, and use the wheel to change camera distance. Camera motion continues on Studio's steady render cadence even when right mouse is not held. ## Saving place files Glorpia Studio uses `.glrp` as its normal place-file format. Use Ctrl+S when a file already has a path, or use File → Save as File to choose a destination. The place file also saves the Studio camera position, rotation and Field of View, so reopening the file returns the editor camera to the saved view. ## Offline mode If Studio cannot reach its required Glorpia online services at startup, it shows a Failed to Connect popup with **Retry** and **Continue Offline**. Offline mode opens the built-in `Baseplate.glrp`, keeps local editing and playtesting available, and disables publishing. See [Offline Mode](https://docs.glorpia.com/studio/offline-mode.md) for the full behavior. ## Publishing games Use [Publishing Games](https://docs.glorpia.com/studio/publishing.md) to learn how to submit a new game for review, update an approved game, and frame the Studio camera for the generated icon and thumbnail. ## Playtesting Press Play to start a runtime preview. Studio shows the Glorpia logo and animated loading spinner while the playtest server and runtime mirrors are prepared. Once Play begins, one Client/Server toggle button appears directly to the right of Play/Stop. Client view runs the player-facing runtime and shows CoreScripts. Server view uses the Studio freecam and allows temporary live editing of the authoritative server world. Client-only changes stay local. Server changes replicate to the client. Server-view edits are discarded when you press Stop and never overwrite the edit-time `.glrp`. ![Glorpia Studio in Play mode with a player character in the viewport and CoreScripts in Explorer](https://docs.glorpia.com/images/studio/playtest-mode.png) *Client view runs the player-facing playtest. CoreScripts are visible in Client view and hidden in Server view.* See [Playtesting & Client/Server Views](https://docs.glorpia.com/studio/playtesting.md) for the full authority, live-editing and LAN server behaviour. --- Source: https://docs.glorpia.com/studio/offline-mode Markdown: https://docs.glorpia.com/studio/offline-mode.md --- title: "Offline Mode" description: "Use Glorpia Studio locally when Glorpia's online services cannot be reached." canonical: "https://docs.glorpia.com/studio/offline-mode" markdown: "https://docs.glorpia.com/studio/offline-mode.md" --- # Offline Mode Use Glorpia Studio locally when Glorpia's online services cannot be reached. **Category:** Studio ## Connection failure popup Studio checks its required online services during startup. If the Glorpia site, authentication service, or games service cannot be reached, or one of those services returns a server error, Studio shows a **Failed to Connect** popup. | Name | Type | Description | | --- | --- | --- | | `Retry` | action | Runs the startup connectivity check again. | | `Continue Offline` | action | Starts a local Studio session without account or publishing features. | ## What happens offline Choosing **Continue Offline** stops the online startup flow and opens Studio with the built-in `Baseplate.glrp`. | Name | Type | Description | | --- | --- | --- | | `Starting place` | Baseplate.glrp | The built-in baseplate becomes the current document. | | `Playtest username` | Player | Offline playtests use Player as the local username. | | `PlayerID` | 0 | Offline playtests use PlayerID 0 instead of an online account ID. | | `Publishing` | disabled | The Publish button is disabled while Studio is offline. | | `Local files` | available | Normal local .glrp open and save workflows remain available. | > **Note:** Offline mode does not sign in to a Glorpia account. Online account identity and publishing return the next time Studio starts with its required services available. ## Offline playtesting Playtesting still starts the normal local or LAN-capable Glorpia playtest flow, but the runtime Player identity defaults to `Player` with `PlayerID` `0`. ```luau local Players = game:GetService("Players") local player = Players.LocalPlayer print(player.Name) -- Player print(player.PlayerID) -- 0 in Studio offline mode ``` ## Related - [Getting Started](https://docs.glorpia.com/studio/getting-started.md) — The normal Studio editing workflow. - [Playtesting & Client/Server](https://docs.glorpia.com/studio/playtesting.md) — How the playtest runtime and Player identity work. - [Publishing Games](https://docs.glorpia.com/studio/publishing.md) — Publishing requires Studio to be online and signed in. --- Source: https://docs.glorpia.com/studio/parts Markdown: https://docs.glorpia.com/studio/parts.md --- title: "Parts & Properties" description: "The properties that define visible and physical parts in Glorpia." canonical: "https://docs.glorpia.com/studio/parts" markdown: "https://docs.glorpia.com/studio/parts.md" --- # Parts & Properties The properties that define visible and physical parts in Glorpia. **Category:** Studio ## Selecting a part Click a part in the viewport or select it in Explorer. The selected part is outlined in cyan and its values appear in Properties. Hovering a selectable part uses a softer outline at 60% opacity (0.4 transparency). During Client view, selecting a real world instance from Explorer also draws its selection box in the preview. ![A selected green Part outlined in cyan in the Glorpia Studio viewport](https://docs.glorpia.com/images/studio/selected-part.png) *A selected Part is outlined in cyan.* ## Transform tools The Move, Scale and Rotate tools place coloured gizmos around the current selection. Each colour represents one transform axis. | Name | Type | Description | | --- | --- | --- | | `Move` | arrow handles | Arrow shafts and cone arrowheads translate the selection along one axis. | | `Scale` | sphere handles | Short stems and smooth sphere handles resize the selection along one axis. | | `Rotate` | circular rings | Circular axis rings rotate the selection. | The transform handles keep a stable screen-space size as camera distance changes. Move and Scale snap the amount dragged rather than re-snapping the object's absolute value, so switching from a 0.5-stud increment to a 1-stud increment preserves an existing 0.5 offset. ![Move gizmo around a selected Part](https://docs.glorpia.com/images/studio/move-tool.png) *Move translates the selection along an axis.* ![Scale gizmo around a selected Part](https://docs.glorpia.com/images/studio/scale-tool.png) *Scale uses sphere handles connected to the selected bounds.* ![Rotate gizmo around a selected Part](https://docs.glorpia.com/images/studio/rotate-tool.png) *Rotate turns the selection around an axis.* ## Transform | Name | Type | Description | | --- | --- | --- | | `Shape` | PartShape | Block, Ball, Cylinder, Wedge or CornerWedge. | | `Size` | Vector3 | The part dimensions in studs. | | `CFrame` | CFrame | Position and rotation. | | `Position` | Vector3 | World-space position. | | `Orientation` | Vector3 | Euler rotation shown by Studio in degrees. | ## Part shapes | Name | Type | Description | | --- | --- | --- | | `Block` | Box-shaped geometry for walls, floors and general building. | | | `Ball` | Spherical or ellipsoid geometry based on Size. | | | `Cylinder` | Cylinder aligned to the part's Y axis. | | | `Wedge` | Triangular-prism geometry with one sloped face. | | | `CornerWedge` | Corner wedge with two perpendicular slopes that meet at one raised corner. | | Use the Shape property in Studio or set `part.Shape` from Luau with a value from `Enum.PartShape`. ## Appearance | Name | Type | Description | | --- | --- | --- | | `Color3 / Colour3` | Color3 / Colour3 | Part colour. | | `Transparency` | number | 0 is opaque and 1 is fully transparent. | ## Behaviour | Name | Type | Description | | --- | --- | --- | | `Anchored` | boolean | Anchored parts do not simulate as dynamic bodies. | | `CanCollide` | boolean | Controls whether the part participates in collision. | ## Modifiers | Name | Type | Description | | --- | --- | --- | | `Bevel` | number | 0 to 1 edge-rounding amount. Radius stays physically even around all edges. | | `Shade Smooth` | boolean | Smooths normals across curved generated geometry. | | `Detail` | integer | 1 to 16 tessellation detail for generated curved geometry. | | `Vertices / Triangles` | readout | Shows the generated mesh complexity in Studio. | ## Editing multiple parts Select more than one compatible instance to edit shared properties together. Mixed values are shown as multiple values until you replace them. Transforming a multi-selection treats the selected parts as one group while preserving their relative positions. ![Properties panel showing three selected Part instances and a Multiple Values colour](https://docs.glorpia.com/images/studio/multi-selection-properties.png) *Properties shows shared values and marks values that differ across the selection.* ![Several selected Parts surrounded by one cyan selection box and a Move gizmo](https://docs.glorpia.com/images/studio/multi-selection-viewport.png) *A multi-selection can be transformed together from one shared gizmo.* ## Adding instances Right-click an instance in Explorer and open **Insert**. The menu is organised into **Parts**, **Scripting**, **GUI**, **Lighting**, **Sounds**, **Values** and **Avatar**. Entries are grouped by purpose inside each category; categories flow vertically and continue into the next column after 15 instance rows. Ordinary instances can be parented beneath other ordinary instances even when that placement is not meaningful to a particular runtime system. Context controls behaviour: world Parts require Workspace ancestry, GUI objects require a valid GUI container chain, Lighting effects require direct Lighting ancestry, and public scripts only start in their documented runtime execution locations. The same insert/transform workflow is available against the temporary live server world in Server view. Those changes replicate to Client view but disappear when Stop is pressed. ![Explorer Insert menu organised into instance categories](https://docs.glorpia.com/images/studio/explorer-insert-menu.png) *The Insert menu groups supported classes by category while allowing unrestricted ordinary-instance parenting.* > **Note:** Server-view changes are playtest-only. They are not written back into the edit-time place file. --- Source: https://docs.glorpia.com/studio/playtesting Markdown: https://docs.glorpia.com/studio/playtesting.md --- title: "Playtesting & Client/Server Views" description: "How Glorpia Studio separates the client and authoritative server while a playtest is running." canonical: "https://docs.glorpia.com/studio/playtesting" markdown: "https://docs.glorpia.com/studio/playtesting.md" --- # Playtesting & Client/Server Views How Glorpia Studio separates the client and authoritative server while a playtest is running. **Category:** Studio ## Starting a playtest Press **Play** to start a runtime session. Studio shows the Glorpia loading screen while it prepares the place, starts or contacts the playtest server, and creates the client and server runtime views. When Studio is online, it uses the username and `PlayerID` of the account signed into Studio for the playtest Player instance. In offline mode, the playtest identity defaults to `Player` with `PlayerID` `0`. > **Note:** Playtesting is temporary. Studio clears the edit-time selection while the runtime is active, then restores that selection when Stop returns to the unchanged edit-time place. Live changes made during the playtest are not written into the `.glrp` file. ## Offline playtests Offline mode still supports local playtesting. Studio opens from its built-in `Baseplate.glrp`, uses the offline Player identity, and keeps publishing disabled while offline. - [Offline Mode](https://docs.glorpia.com/studio/offline-mode.md) — Startup fallback, PlayerID 0, local files and disabled publishing. ## Client / Server toggle While Play is running, one Client/Server icon button appears directly to the right of Play/Stop. The icon shows the view that is currently active. Click the same button to toggle between Client and Server view. | Name | Type | Description | | --- | --- | --- | | `Client view` | runtime view | Shows the client-side world, player controls, client camera and CoreScripts. Client-only changes stay on the client. | | `Server view` | authoritative view | Shows the server mirror with Studio freecam and live editing tools. Edits are sent to the authoritative server and then replicate to the client. | ## Authority rules | Name | Type | Description | | --- | --- | --- | | `Client changes` | client only | Runtime changes made only on the client are not sent upstream to the server. | | `Server changes` | replicated | Authoritative server changes replicate down to the client view. | | `Movement input` | client → server | Movement and jump input are sent to the authoritative server, which owns character physics. | | `Server-view Studio edits` | Studio → server | Supported live edits are sent to the real running server and then appear in Client view through normal replication. | > **Note:** The two views are separate runtime mirrors. Switching views does not turn client-local state into server state. ## Client view Client view is the normal player-facing runtime. It runs the built-in client CoreScripts for controls, camera behaviour and freecam support. CoreScripts appear in Explorer only in Client view. Selecting a real world instance in Explorer also draws its selection box in the 3D preview, even though Client view is not the authoritative editing view. The **Players** service, Player instance, runtime `PlayerGui`/`PlayerScripts`, Character model, Humanoid and R6 body parts are visible while playtesting. LocalScripts cloned into those runtime containers are discovered and started once on the client. ## Server view Server view uses the Studio freecam and keeps the normal editor interaction model while the simulation continues to run. You can select and transform parts, edit Properties, rename instances, drag/reparent in Explorer, insert supported runtime objects, delete, duplicate, copy/cut/paste, and group or ungroup supported live instances. Move, Scale and Rotate use the same transform gizmos as Edit mode. Server view hides the client-only CoreScripts from Explorer, but it still shows Players and the current Character hierarchy so you can inspect the live player and character state. > **Note:** Server-view edits are not saved. Stop ends the runtime session and restores the original edit-time place. ## Live-editable server objects The current live-edit bridge replicates the runtime hierarchy and server-side properties used by the playtest system. | Name | Type | Description | | --- | --- | --- | | `Part / SpawnLocation` | live editable | Transform, size, colour, transparency, shape, bevel, mesh detail, smooth shading, Anchored and CanCollide. | | `Model / Folder` | live editable | Create, rename, group, ungroup, reparent, destroy, and edit Visible and CanCollide. Folders also expose Explorer icon colour. | | `Lighting` | live editable | Brightness, ClockTime and direct BlurEffect / ColourCorrection children. | | `Humanoid` | live editable | Health, WalkSpeed and JumpPower. | | `Player` | inspect | Name, ClassName, PlayerID and Character are shown as runtime player data. | | `ServerScript` | authoritative | Enabled public ServerScripts run on the server and can drive supported world state and events. | | `LocalScript` | client | Enabled LocalScripts start from runtime copies in PlayerGui, PlayerScripts or the local Character. StarterGui and StarterPlayer template scripts remain inactive. | | `BasicSound` | live editable | Enum-backed Sound, Volume, Looped, Playing and RolloffMaxDistance replicate to clients. | ## Playtest server selection Studio first looks for a compatible Glorpia LAN playtest host on the local network. If one is available, Studio uploads the temporary playtest place and connects to the gameplay session it provides. If no compatible LAN host can be used, Studio automatically falls back to the same Glorpia server running in-process on the current PC. ## Related - [Player](https://docs.glorpia.com/instances/player.md) — PlayerID, Character and other Player properties. - [Players](https://docs.glorpia.com/services/players.md) — LocalPlayer and the runtime player list. - [LocalScript](https://docs.glorpia.com/instances/localscript.md) — Creator client-side scripts and their permission set. - [CoreLocalScript](https://docs.glorpia.com/instances/corelocalscript.md) — Built-in client scripts visible in Client view. - [Parts & Properties](https://docs.glorpia.com/studio/parts.md) — Selection, transform gizmos and part properties. - [Offline Mode](https://docs.glorpia.com/studio/offline-mode.md) — Playtesting without online account services. For the basic editor workflow, see [Getting Started](https://docs.glorpia.com/studio/getting-started.md). --- Source: https://docs.glorpia.com/studio/publishing Markdown: https://docs.glorpia.com/studio/publishing.md --- title: "Publishing Games" description: "Submit a new game for review, update an approved game, and prepare its icon and thumbnail from the Studio camera." canonical: "https://docs.glorpia.com/studio/publishing" markdown: "https://docs.glorpia.com/studio/publishing.md" --- # Publishing Games Submit a new game for review, update an approved game, and prepare its icon and thumbnail from the Studio camera. **Category:** Studio ## Before publishing Sign in to your Glorpia account in Studio before publishing. Published games and review submissions are connected to that account. > **Note:** Publishing requires Studio to be online. In Studio offline mode, the Publish button is disabled. Use the Studio camera to frame the place the way you want it to appear before opening Publish. Studio captures the current 3D preview and can use that view to generate the game artwork. ## Choosing what to publish Click **Publish** in the top-right corner of Studio. The publishing screen shows cards for games you have already submitted and had approved. Select one of those games to update it, or choose **New Game** to make a new submission. ![Publish Game screen showing approved game cards and the New Game button](https://docs.glorpia.com/images/studio/publish-game-picker.png) *Choose an approved game to update, or select New Game to create a separate game.* ## Publishing a new game 1. Position the Studio camera on the view you want to use for the game artwork. 2. Click **Publish** in the top bar. 3. Choose **New Game** on the game selection screen. 4. Enter the game name and description. 5. Check the generated icon and thumbnail. You can replace either image before submitting. 6. Click **Submit for Review**. ![New Game publish screen with generated Icon and Thumbnail previews beside Name and Description fields](https://docs.glorpia.com/images/studio/new-game-publish.png) *The New Game editor shows the generated icon and thumbnail on the left and the game information on the right.* The submitted place is a snapshot of the current Studio place. Unsaved edits that are present in the editor are included in that review build. > **Note:** A player can have one pending submission at a time. Publishing again while a submission is still pending replaces that pending submission with the newer build and information. ## Updating an approved game Click **Publish** and choose one of your approved games from the game cards. Studio opens the publishing editor with that game selected and its current name and description filled in. Edit the name or description as needed. The existing icon and thumbnail stay unchanged unless you choose replacements or use the current Studio camera view for new artwork. Submit the update for review. The currently published version remains live while the update is pending. If the update is approved, the reviewed `.glrp` place and submitted game information become the new published version. If the update is rejected, the live game is not changed. ## What happens after approval When a new-game submission is approved, Glorpia creates the game under the account that submitted it and publishes the reviewed `.glrp` place. The approved icon and thumbnail become the game artwork. When an update to an existing game is approved, that same game is updated instead of creating another game. ## Icon and thumbnail generation For a new game, Studio captures the current 3D preview when you open the publishing flow and prepares two images from that camera view: - **Icon:** a square 512 × 512 image. - **Thumbnail:** a 16:9 960 × 540 image. You can upload your own replacement image for either one. If you want to return to the automatically captured artwork, use **Use Current View**. ## Positioning the camera for good artwork The square icon and the widescreen thumbnail come from the same Studio camera view, but the square icon shows less of the left and right sides. Compose the shot so the most important part of the scene is close to the centre. ![Glorpia Studio camera view framing a green Baseplate in the centre of the viewport](https://docs.glorpia.com/images/studio/studio-overview.png) *Frame the scene in the main viewport before opening Publish.* ![Camera Properties showing CFrame Position, Orientation and FieldOfView](https://docs.glorpia.com/images/studio/camera-properties.png) *The Camera Properties panel exposes CFrame and FieldOfView when you need a more precise composition.* - Keep the main building, character, or focal point near the centre of the viewport. - Leave some space around the subject so the square icon does not feel cramped. - Do not place important details only at the far left or right edge because those areas may not appear in the square icon. - Move closer when the important subject looks too small, and move farther away when it fills too much of the frame. - Adjust the camera angle and Field of View before opening Publish if you want a different composition. > **Note:** A useful framing check is to imagine a square in the centre of the viewport. Keep the part of the scene that must appear in both the icon and thumbnail inside that central area. ## Saving the Studio camera Glorpia place files save the Studio camera position, rotation, and Field of View. Reopening the `.glrp` returns the editor camera to the saved view. This is useful when you have already composed a view for publishing and want to return to the same shot later. ## Related Studio documentation [Getting Started](https://docs.glorpia.com/studio/getting-started.md) covers the main editor workflow, saving place files, and playtesting. [Offline Mode](https://docs.glorpia.com/studio/offline-mode.md) explains the startup fallback when Glorpia online services cannot be reached. --- Source: https://docs.glorpia.com/studio/shortcuts Markdown: https://docs.glorpia.com/studio/shortcuts.md --- title: "Keyboard Shortcuts" description: "Keyboard shortcuts, viewport modifiers and freecam controls for Glorpia Studio." canonical: "https://docs.glorpia.com/studio/shortcuts" markdown: "https://docs.glorpia.com/studio/shortcuts.md" --- # Keyboard Shortcuts Keyboard shortcuts, viewport modifiers and freecam controls for Glorpia Studio. **Category:** Studio ## Editing - `Ctrl + S` — Save the current edit-time place to its existing file path - `Ctrl + Z` — Undo edit-time changes - `Ctrl + Y` — Redo edit-time changes - `Ctrl + G` — Group the current selection - `Ctrl + U` — Ungroup the current selection - `Ctrl + D` — Duplicate the current selection and its complete child hierarchy - `Ctrl + C` — Copy the current selection and its complete child hierarchy - `Ctrl + V` — Paste the copied instance hierarchy - `F2` — Rename the selected instance - `Delete / Backspace` — Delete the selected instance - `F` — Focus the viewport camera on the current selection > **Note:** Copy, paste and duplicate preserve the complete creator-owned instance subtree, including nested Parts, Models, Folders, Humanoids, scripts, sounds, remotes and Value instances. New copies receive fresh InstanceIds. Runtime-owned services, Camera and Player instances are not cloneable. Server view supports the normal live editing workflow, but its changes are temporary and are discarded when the playtest stops. Save/undo history stays tied to the edit-time place. ## Selection & transform modifiers - `Ctrl + Click` — Toggle an instance in the current selection - `Shift + Click` — Add to the selection; in Explorer this can select a range from the selection anchor - `Alt + Click` — Select the part you clicked inside a Model instead of selecting the Model - `Hold Ctrl while scaling` — Scale a single part symmetrically from its centre instead of moving the opposite face ## Studio freecam - `Hold Right Mouse` — Look around with the Studio freecam - `W / A / S / D` — Fly forward, left, backward or right - `Q / E` — Move the Studio freecam down or up - `Mouse Wheel` — Change camera distance - `Middle Mouse Drag` — Pan the Studio camera - `F` — Frame the current selection > **Note:** The Studio freecam is used in normal Edit mode and in Server view. Client view uses the player-facing runtime camera and CoreScripts instead. ## Toolbar tools Select, Move, Scale and Rotate are chosen from the Studio toolbar. Play and Stop are also toolbar actions. While Play is active, the single Client/Server icon button immediately to the right of Play/Stop toggles the active runtime view.