DataModel and hierarchy
Every place has a DataModel root named game. Services are direct children of the DataModel. World objects and character models belong in Workspace. Player account/session instances belong in the Players service, while each Player's Character model is parented to Workspace.
game
Workspace
Map
Character
Players
Player
Backpack
PlayerScripts
Lighting
ReplicatedStorage
ServerStorage
ServerScriptService
StarterGui
StarterPack
StarterPlayer
SoundService
ServerStorage and ServerScriptService are server-only. Their private contents are filtered out before a published place is sent to a browser.
Poieia Lua runtime
Poieia uses a Lua-like scripting runtime built for the Poieia object model. Script, LocalScript, and ModuleScript source is stored in the place hierarchy. Client scripts run in the browser runtime. Server scripts under ServerScriptService run in the Python game-server runtime.
The implemented language surface covers the common control-flow, function, table, iteration, service, instance, signal, and ModuleScript patterns documented here. It is not full Lua 5.x or full Luau compatibility, so code should target the Poieia API documented on this page.
local part = Instance.new("Part")
part.Name = "Demo"
part.Position = Vector3.new(0, 4, 0)
part.Size = Vector3.new(6, 1, 6)
part.Parent = workspace
print(part:GetFullName())
Supported scripting patterns
localvariables and assignmentif,elseif,else,while,repeat, anduntil- numeric
forloops andpairs/ipairsloops - local and global functions, anonymous functions, callbacks, and signal connections
- array-style and keyed table literals
break,continue, andreturn- ModuleScript
require()with cached results
Studio Lua IDE
Double-click a Script, LocalScript, or ModuleScript in Explorer to open it in the center editor. The editor includes syntax highlighting, line numbers, autocomplete, live diagnostics, and error navigation.
| Action | Shortcut or behavior |
|---|---|
| Autocomplete | Ctrl+Space, or type at least two characters |
| Indent | Tab |
| Check script | Use the Check button to run static diagnostics |
| Apply script | Use Apply after diagnostics pass |
| Go to error | Click a diagnostic to move the caret to that line |
Autocomplete includes core globals, services, constructors, common Instance methods, signals, and standard libraries. Diagnostics catch unmatched blocks, common malformed statements, and transpilation errors before a script is applied.
Globals and standard libraries
| Name | Purpose |
|---|---|
game | Current DataModel and service lookup. |
workspace | The Workspace service. |
script | The currently executing script instance. |
Instance | Instance.new(className, parent). |
Vector3, Vector2, Color3, UDim2 | Core value types. |
print, warn | Runtime output. |
task | Client runtime scheduling helpers such as wait, delay, defer, and spawn. |
math | Common numeric functions and constants. |
string | len, lower, upper, sub, find, format, and rep. |
table | insert, remove, sort, concat, find, and unpack. |
tonumber, tostring, type, pairs, ipairs, next | Conversion and iteration helpers. |
assert, error, pcall, xpcall | Error helpers. |
require | Executes and caches a ModuleScript. |
Instance API
Instances expose Name, ClassName, Parent, class properties, named children, and the methods below.
| Method | Behavior |
|---|---|
GetChildren() | Returns direct children. |
GetDescendants() | Returns all descendants. |
FindFirstChild(name, recursive) | Finds a child by name. |
FindFirstChildOfClass(className) | Finds the first direct child with the requested class. |
FindFirstAncestor(name) | Walks upward and finds an ancestor by name. |
FindFirstAncestorOfClass(className) | Walks upward and finds an ancestor by class. |
WaitForChild(name, timeout) | Waits for a named child in runtimes that support waiting. |
IsA(className) | Checks the instance class. |
GetFullName() | Returns the hierarchy path. |
Clone() | Deep-clones the instance tree. |
Destroy() | Removes the instance from its parent. |
ClearAllChildren() | Destroys direct children. |
GetPropertyChangedSignal(name) | Returns a property signal. |
GetAttribute(name) | Returns a custom attribute. |
SetAttribute(name, value) | Sets or removes a custom attribute. |
GetAttributes() | Returns all custom attributes. |
Rig classes
Character rigs use Humanoid and Motor6D instances. Current built-in states include idle, walk, jump, fall, swim, climb, and sit. Seat and TrussPart are available for world interaction.
Effects, values, physics, and leaderboard stats
Poieia v0.9 expands the built-in class registry into an inheritance-aware instance system. Instance:IsA() follows base classes, and Instance.new() applies inherited default properties in both the browser Lua runtime and ServerScript runtime.
World and physics instances
| Family | Instances |
|---|---|
| Base parts | Part, WedgePart, CornerWedgePart, MeshPart, SpawnLocation, Checkpoint, Seat, VehicleSeat, TrussPart |
| Joints and constraints | Motor6D, WeldConstraint, HingeConstraint, BallSocketConstraint, RopeConstraint, SpringConstraint, AlignPosition, AlignOrientation, LinearVelocity, AngularVelocity, VectorForce |
| Interaction | ClickDetector, ProximityPrompt, Tool, ForceField |
Effects and lighting
ParticleEmitter, Fire, Smoke, Sparkles, Trail, Beam, Highlight, point/spot/surface lights, Atmosphere, Sky, and post effects are recognized by Studio and the player renderer. Particle, fire, smoke, sparkle, beam, rope, spring, light marker, highlight, and explosion effects are visible in the 3D renderer. Lighting post effects also influence the viewport presentation.
local emitter = Instance.new("ParticleEmitter")
emitter.Color = Color3.fromRGB(80, 180, 255)
emitter.Rate = 30
emitter.Parent = workspace.Part
emitter:Emit(20)
Explosion
A server-created Explosion produces a replicated visual burst, fires Hit, and applies distance-based damage to Humanoids inside BlastRadius. A character with a ForceField is protected from the server explosion damage pass.
local boom = Instance.new("Explosion")
boom.Position = Vector3.new(0, 4, 0)
boom.BlastRadius = 16
boom.Hit:Connect(function(part, distance)
print("Explosion hit", part.Name, distance)
end)
boom.Parent = workspace
Value objects
| Class | Value |
|---|---|
StringValue | Text |
NumberValue | Floating-point number |
IntValue | Integer |
BoolValue | Boolean |
ObjectValue | Instance reference |
Vector3Value | Vector3 |
Color3Value | Color3 |
CFrameValue | Position and rotation data |
DoubleConstrainedValue, IntConstrainedValue | Numeric value clamped between MinValue and MaxValue |
Value objects expose Value, Changed, and GetPropertyChangedSignal("Value"). Constrained values clamp assignments automatically.
Leaderboard stats
Leaderboard stats use the classic leaderstats convention. Create a Folder named leaderstats under each Player, then parent Value objects to it. The server replicates those values to clients and CoreUI shows up to four stats beside each player.
local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(player)
local leaderstats = Instance.new("Folder")
leaderstats.Name = "leaderstats"
leaderstats.Parent = player
local score = Instance.new("IntValue")
score.Name = "Score"
score.Value = 0
score.Parent = leaderstats
end)
Additional built-ins
The registry also includes expanded GUI layout classes, sound effects, Debris, CollectionService, Teams, clothing/avatar classes, decals and surface appearance, attachments and bones, and networking helpers such as BindableEvent. Abstract base classes are present for inheritance and documentation but are not offered as creatable Studio objects.
Services
Use game:GetService("ServiceName"). Services are separate from Workspace and are direct children of the DataModel.
| Service | Purpose |
|---|---|
| Workspace | Replicated 3D world and character models. |
| Players | Player session instances, PlayerAdded, PlayerRemoving, GetPlayers, GetPlayerByUserId. |
| Lighting | World lighting configuration. |
| ReplicatedStorage | Shared client/server container and RemoteEvent instances. |
| ServerStorage | Server-only object container. |
| ServerScriptService | Server-only Script container. |
| StarterGui | Developer ScreenGui hierarchy copied into the player UI runtime. |
| CoreGui | Poieia-owned CoreUI. |
| StarterPack | Default Gear copied into each joining player's Backpack. |
| StarterPlayer | Character defaults, StarterPlayerScripts, and StarterCharacterScripts. |
| SoundService | Sound and audio configuration. |
| RunService | Runtime mode and frame/update signals on the client. |
| HttpService | JSON helpers and server-routed outbound HTTP. |
| MarketplaceService | Marketplace integration surface. |
| DataStoreService | Reserved persistent server storage API surface. |
| GroupService | Group integration surface. |
| GuildService | Guild integration surface. |
Players, characters, gear, and hats
When a client joins a live server, the server creates a Player under Players and a Character model under Workspace. The Player references its Character.
Workspace
ExamplePlayer
Humanoid
HumanoidRootPart
RootJoint
Head
Neck
Torso
Left Shoulder
Right Shoulder
Left Hip
Right Hip
Left Arm
Right Arm
Left Leg
Right Leg
EquippedGear
Players
ExamplePlayer
Backpack
PlayerScripts
StarterPack gear is copied into Backpack. Equipped gear moves into Character. Worn catalog hats are represented in the avatar state. A player can drop a worn hat into the current live server and another nearby player can pick it up for that session.
The rig is evaluated hierarchically. RootJoint moves the torso, and Neck, Shoulder, and Hip joints are evaluated from the torso transform. This means the head, arms, legs, worn hats, and equipped Gear follow torso rotation instead of being animated as unrelated blocks.
Each Motor6D exposes Part0, Part1, C0, C1, and Transform. Built-in motion poses cover idle, walk, jump, fall, swim, climb, and sit states.
Animations and Animator
Published animation definitions are loaded with the experience and are available to the client runtime. An Animation instance identifies an uploaded animation through AnimationId. Characters contain an Animator under Humanoid.
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local character = player.Character
local humanoid = character:FindFirstChildOfClass("Humanoid")
local animation = Instance.new("Animation")
animation.AnimationId = "1"
local track = humanoid:LoadAnimation(animation)
track.Looped = true
track:Play()
Humanoid:LoadAnimation() is provided as a compatibility helper and forwards to the character Animator. Animator:LoadAnimation() returns an AnimationTrack with Play, Stop, AdjustSpeed, IsPlaying, TimePosition, Length, Stopped, Ended, and DidLoop.
Animation keyframes can drive RootJoint, Neck, Left Shoulder, Right Shoulder, Left Hip, and Right Hip. The player interpolates joint poses between keyframes.
WebSocket multiplayer
Published games use /ws/games/{gameId}. Each connection joins a live server room with its own server ID and max-player limit. If a room is full, the normal Join flow can create another room.
The WebSocket carries joins, leaves, character movement, motion state, gear state, avatar updates, dropped hats, chat, report actions, world mutations, and RemoteEvent traffic. Sending the explicit leave message removes the Player from the room before the socket closes and returns a leave_ack to the client.
If an authenticated account reconnects while an older connection for that same account is still registered, the older Player is evicted before the replacement Player joins. This prevents stale duplicate characters after a broken or interrupted browser disconnect.
RemoteEvent
Place RemoteEvent objects in ReplicatedStorage. LocalScripts call FireServer. ServerScripts receive OnServerEvent with the Player as the first argument. ServerScripts can call FireClient or FireAllClients.
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Event = ReplicatedStorage:WaitForChild("Action")
Event.OnServerEvent:Connect(function(player, value)
print(player.Name, value)
Event:FireAllClients(value)
end)
Server Scripts can create, update, and destroy instances under Workspace. Those replicated world mutations are broadcast to connected clients, and newly joining clients receive the current server Workspace snapshot.
The bundled room registry is in-process. If you deploy more than one game-server worker or machine, add a shared room/message broker before distributing WebSocket clients across those workers.
Signals and events
Signals support Connect, Once, Wait where implemented, and internal Fire. Instances expose Changed, ChildAdded, ChildRemoved, and property signals. Interactive UI instances expose Activated, MouseButton1Click, MouseEnter, MouseLeave, InputBegan, InputEnded, Focused, and FocusLost. Humanoid exposes StateChanged in the player runtime.
local button = game:GetService("StarterGui"):FindFirstChild("PlayButton", true)
if button then
button.Activated:Connect(function()
print("Activated")
end)
end
Developer UI and CoreUI
Developer UI belongs under StarterGui and may use ScreenGui, Frame, TextLabel, TextButton, TextBox, ImageLabel, and ImageButton. StarterGui is cloned into the local PlayerGui when a player joins. LocalScripts in the cloned PlayerGui execute after LocalPlayer and Character exist.
CoreGui is owned by Poieia and provides chat, player list, user toolbar, reports, and the Gear hotbar. LocalScripts stored under CoreGui also execute in the client runtime and can create supported CoreGui descendants. Developer UI and CoreUI remain separate hierarchies.
Poieia Studio
Studio uses a desktop-style layout with ribbon tools at the top, Toolbox on the left, Explorer and Properties on the right, document tabs in the center, and Output at the bottom.
| Control | Action |
|---|---|
| Right mouse drag | Orbit the editor camera. |
| Middle mouse drag | Pan. |
| W A S D | Move camera. |
| Q / E | Move camera down/up. |
| Mouse wheel | Dolly camera forward/backward. |
| F | Focus selected object. |
| Test | Runs the current in-memory draft without publishing. |
| Stop | Sends the test player a forced-exit message, closes the test frame, and restores the editor viewport. |
| Save Draft | Stores the editable version only. |
| Publish | Promotes the saved draft to the live version. |
Studio uses explicit document tabs for the 3D view, scripts, and Play Test. Changing tabs preserves edited script source. A script tab has its own close control, and stopping Play Test returns to the 3D view rather than nesting another Studio inside the test frame.
OBJ, embedded glTF, GLB, and STL imports are parsed into actual renderable triangle meshes. Imported objects become MeshPart instances in Workspace and use the same Explorer, Properties, transform, save, test, and publish workflow as other objects.
Catalog publishing from Studio
Catalog type is determined by the selected instance class. Select the root object in Explorer and use Publish Asset.
| Studio instance | Catalog category | Creator capability |
|---|---|---|
HatAccessory | Hat | creator.3d_accessories |
Tool | Gear | creator.gears |
Shirt | Shirt | creator.2d_accessories |
ShirtGraphic | T-Shirt | creator.2d_accessories |
Model | Model | creator.models |
Animation | Animation | creator.animations |
A HatAccessory may contain a MeshPart and attachments. A Tool is the Studio object used for Gear. The published catalog asset preserves the selected object hierarchy so the player and avatar renderer can use its children and properties.
3D model imports
The import pipeline parses geometry before accepting the upload. Supported formats are OBJ, STL, GLB version 2, and glTF with embedded buffers. For glTF projects that use separate .bin files, export to GLB or embed the buffers before uploading.
Imported geometry is triangulated, normalized around its origin, capped at 50,000 triangles, and stored with a render sidecar. Studio uses the model bounds to choose a useful initial MeshPart size. The same mesh endpoint is used by Studio, published games, hats, and the avatar preview.
Avatar editor
The Avatar page provides a live 3D character preview. Drag the preview to rotate and use the mouse wheel to zoom. Body colors update immediately. Users can wear up to three owned Hats or compatible 3D accessories and select owned Shirt and T-Shirt catalog items.
Saved avatar state is used when the character joins a game and is replicated with the multiplayer player state.
IP bans and username-linked bans
Moderators with moderation.ip_bans can ban a literal IP/CIDR or ban by username. A username-linked ban immediately adds the account's last known login IP, or registration IP when no later address is known. If the banned account later attempts to log in from another address, that address is automatically added to the linked IP-ban set and the login remains blocked.
CF-Connecting-IP is only trusted when the direct peer address belongs to a configured Cloudflare network. Requests that reach the origin directly cannot make Poieia trust a forged Cloudflare forwarding header.
HttpService and Cloudflare routing
Browser clients do not directly issue arbitrary external HTTP requests through Poieia's developer HTTP service. Outbound experience requests are routed through the game server, then the Poieia API, then the configured Cloudflare Worker.
An administrator must enable HttpService globally, and the individual game must also have HttpService enabled. Cloudflare routing and trusted proxy CIDRs can be configured at Administration > HttpService & Cloudflare. Secret fields are write-only and are never returned to the browser.
POIEIA_GAME_SERVER_KEY=long-random-server-secret POIEIA_CLOUDFLARE_PROXY_URL=https://your-worker.workers.dev POIEIA_CLOUDFLARE_PROXY_SECRET=worker-shared-secret
The Worker validates the shared secret, strips sensitive headers, rejects obvious private/local targets, and limits response size.
Web API
GET /v1/health
GET /v1/instance-types
GET /v1/services
GET /v1/users/{username}
GET /v1/users/id/{user_id}
GET /v1/games
GET /v1/games/{id}
GET /v1/games/{id}/servers
GET /v1/games/{id}/passes
GET /v1/catalog
GET /v1/economy
GET /v1/groups/{id}
GET /v1/guilds/{id}
POST /v1/games/{id}/http
The HTTP proxy endpoint is server-only and requires the internal game-server key.