Scripting changelog
What changed in the scripting language, newest first.
2026-11-22: Clans can own games
A clan can make games of its own and its members edit them together through their clan role. Two new role permissions, Edit the clan's games and Manage the clan's games, are on the clan's Roles tab, and the clan page has a Games tab. A role that only edits opens the game in Polycarbonate and works on it with the others; one that manages also publishes it, changes its settings and invites people from outside the clan. studio.cloud().link gains clan, the name of the clan the game belongs to (an empty string for any other game), and link.shared is now true for anyone who may edit a game but not publish it. See editing a game together.
2026-11-22: Two people can edit a game together
The owner of a game can invite other accounts to edit it with them, and the editor shares their changes as they happen: parts, the lighting and workspace settings, and the text of scripts. A script one person has open is read only for anyone who opens it after them. studio.cloud() gains link.owner, link.shared and a team table (ready, reset, and peers as a list of { name, selection, editing }), so a plugin can show who else is in the game, what they have selected and which script they have open; the 3D view outlines their selections and the built-in account window lists them. Nothing changes for a game with no invited editors. See editing a game together.
The editor's autosave and Publish now save the place the way File > Save does. They used to leave out the lighting and workspace settings, so a game saved or published from the editor could lose them.
2026-11-21: The server no longer pulls players back
The game server now takes the position a player's client reports as it is. It no longer checks speed, jumps, hovering or walls, so a player is never moved back to where they were, and nobody is removed for "unusual movement". Scripts are unaffected: player.position = ..., launches, Humanoid:SetMovementMode and the controller settings work as before, and a mode still tells the client how to move, but there is no limit for it to widen.
2026-11-21: Raycasts, radius queries and find stay fast in big places
world:raycast, world:raycast_all, a world:query with within, and entity:find no longer look at every part. The game keeps a grid of where solid parts are, a grid of positions, and an index of children by name, all kept current from the same changes scripts and the editor make. Nothing about what they return changes: results come back in the same order, and find still returns the first child with the name when several share it. In a place of 50,000 parts a raycast went from about 630 microseconds to 17, a within query from 55 to 4.5, and a find from 63 to 0.3, so 200 scripts doing all three every frame now fit in under 10 milliseconds. A ray tens of thousands of studs long falls back to checking every part, as before.
2026-11-18: World file format v2 (singletons and storage service groups)
- Places and models now encode in World format v2 (
STWD\x02), storingWorkspaceandLightingsettings (includingcloud_density) on the typed singleton entities rather than sidecar header objects. Version 1 (STWD\x01) files remain readable andstuds_convertupgrades v1 files to v2. - Storage containers (
ReplicatedStorage,ReplicatedFirst,ServerStorage,ServerScriptService,StarterPlayer) are stored as realGroupentities in theWorldhierarchy withkindset to the service name, replacing string parent overrides. - Legacy
PointLightandSpotLightparts persist explicit light defaults into saved columns on encode while keeping existing schema defaults intact.
2026-11-18: A sound's playing is saved with the place
Sound.playing is marked saved: a sound set to play in the editor is stored in the place file's column and starts with the game, as before. It is still read only for scripts (sound:play() and sound:stop() change it). The editor now keeps the place in the same world scripts see, so nothing it edits needs a second copy of the place.
2026-11-18: A saved place keeps scripts, groups and settings as typed columns
The place file now stores everything in the schema's columns. Group has a read-only kind (Folder or Model), Sound has read-only speed and range, and two new classes hold what was kept in a side table: Script (read-only kind of Script, LocalScript or ModuleScript, and its source) and Object (a remote, a value object, a click detector or one of the place's settings, with a read-only kind and text). Scripts run exactly as before and these classes are read-only; they exist so the saved file and the editor no longer need a second representation of the place. Older place files open as they did.
2026-11-18: Players are told what scripts changed straight from the world
A game server now sends each player what changed in the world since they last heard, read from the same columns scripts use, instead of comparing a second copy of every part. name, parent, friction, elasticity, mass and ladder on parts, and angle and rotation on lights, are marked replicated, so changing them from a script reaches every player's game, as size, color and shape already did. A group or light a script makes reaches players with all of its properties. Parts a script moves, recolours, makes or destroys behave as before.
2026-11-18: Part physics settings, ladders and spot lights are properties
Part has friction, elasticity, mass and ladder, and Light has rotation and angle. All are saved with the place. Game servers now build and update every part's body, collider and look from the World, so changing size, shape, solid, anchored, mass, friction or elasticity from a script rebuilds the body in place. A light with angle above 0 is a spot light along its front. Parts in ServerStorage and the other containers still stay out of the world until a script gives them a parent.
2026-11-18: Player downloads respect script placement
Published places keep server and Studio script source out of player downloads, including legacy script objects with explicit directives. Filtering also covers deeply nested server-only storage.
2026-11-17: Scripts can read saved world settings
world.root is the Workspace and retains the members of Group. world.lighting exposes the saved sky and lighting configuration. Both are engine-owned singletons, and scripts can read their settings.
2026-11-17: Spawn markers are available to scripts
Saved spawn markers appear as Spawn entities and inherit the members of Part.
2026-11-17: Part orientations use quaternions internally
Scripts still read and write XYZ Euler degrees through Part.rotation. The World stores the orientation as a quaternion, so reads may return equivalent angles. Physics poses and raycasts use the stored orientation directly.
2026-11-17: Scripts can set part shape and material
Part.shape changes the mesh and collider. Part.material changes the surface texture while the current body keeps simulating. Both properties are available in Polycarbonate.
2026-11-17: Place properties marked in the schema
The API reference marks which properties belong in a saved place. This prepares the schema-driven place format. The current place codec still reads and writes the existing format.
2026-11-17: Collision groups and physics filters removed
- Polycarbonate: the Place panel drops the collision matrix, and the Properties panel drops
can_touch,can_queryandcollision_group. Plugins must remove calls tostudio.collision_groups,studio.add_collision_group,studio.remove_collision_groupandstudio.set_collidable. - Existing places: fall-through pairs and suppressed touches now follow the standard collision and touch rules. Older place files remain readable.
- Network protocol 23: replicated parts omit the old filter fields.
2026-11-17: Features without a script API are removed
The engine no longer carries anything Dialect scripts cannot reach. This is a hard break: places that used these load, and the objects are ignored.
- Gone from the game: tools, the backpack and the hotbar; seats and vehicle seats; Humanoid rigs (NPCs); the Animator, animation clips and script-posed limbs; welds, joints and attachments (a
weld_tolink in an old place is still read); particles, beams, trails, bloom, blur, depth of field, colour correction, vignette and highlights, and the Screen effects setting; decals and uploaded mesh parts; and model import. - Gone from the built-in gameplay: kill bricks, checkpoints, jump pads, teleporters, trigger volumes, buttons, fading platforms, conveyors and spinners. Use
touched,stepped_onand the other signals; see the examples. - Polycarbonate: the Insert menu loses the effect, Attachment, Joint, model-file and mesh-file entries;
studio.curves,studio.set_curve,studio.import_modelandstudio.upload_meshare removed, and the Library lists sounds only (the Creator Store keeps models and audio). - Network protocol 22: the packets and fields of these features are gone. Servers, clients and the site must update together.
2026-11-11: Safer scripts and permissions
- Scripts are source text. A script that holds control characters (other than tab and line ends) is an error when run,
required, checked in the editor or published. - Deferred functions have the time limit.
scope:deferfunctions run as tasks, so a loop in one is stopped after 0.1 seconds like any other task, including when an object is destroyed. - Limits on a whole tick and on objects. All tasks together may run for 1 second between two steps; a world holds at most 250,000 objects; at most 50,000 engine calls may be waiting at once. See Limits in the overview.
- Plugins need permission to change the editor's own commands.
studio.bind,studio.reset_keymap,studio.customize,studio.explorer_decoratorsandstudio.property_sectionsare checked like the account and system functions (see Plugins). A plugin you wrote in the editor is allowed; others are asked about when added.
2026-11-11: A graph for curves, and canvases for plugins
- Properties draws each curve as a graph above its keys: time across, value up, a dot on every key (a color curve has a line and dots for R, G and B). Drag a dot to move its key (the key keeps its place in time order as it passes others, and the whole drag is one undo step), double-click empty space to add a key there (up to 16), double-click a dot to remove it. A value curve keeps its vertical range fixed while a dot is held, so the graph does not rescale under the pointer; type a larger value in the key's field to go past it. The fields under the graph still work.
- Plugin panels can draw and read the pointer with
ui.canvas(height, draw). It reserves a full-width rectangle;draw(c)gets{ w, h, x, y, hovered, pressed, down, released, double }(x and y from the top left, missing when the pointer is neither over it nor dragging out of it) and paints withui.draw_line,ui.draw_rect,ui.draw_circleandui.draw_text, in points from the top left and clipped to the rectangle. Those four are an error outside a canvas, and a canvas cannot hold another canvas.
2026-11-11: Tools in plugins
- A tool a plugin adds can handle clicks in the 3D view.
studio.tooltakes an optionalon_click, called when the view is clicked while that tool is active, with{ x, y, origin, dir, hit, ctrl, shift }: the ray through the pointer, and the id of the part under it (hitis absent on empty ground). The view selects nothing for such a tool; the function decides, usingstudio.select,studio.setand the rest. A function that fails is reported in the Output panel and the editor goes on. The idsselect,move,scaleandrotatestay the editor's own. - A plugin tool can handle drags too.
studio.tooltakes an optionalon_drag, called with{ phase, x, y, start_x, start_y, origin, dir, hit, ctrl, shift }at the start of a drag ("begin"), every frame of it ("move") and when the button is let go ("end").hitis the part under the point where it began. What the function changes while the button is held is one step of undo, and such a tool draws no selection box. - Move, Scale and Rotate are plugins. The built-in tools draw handles (arrows, arrows with squares, a ring about each axis), find the one under the pointer when the button goes down and edit the selection while it is held (snapping to
snap.move,snap.scaleorsnap.rotate, Ctrl flipping it), using functions any plugin's tool can use:on_press(returntrueto take the press,falseto let the view select),on_draw, and the newstudio.view_project,view_scale,view_line,view_rect,selection_center,selection_partsandset_parts. The 3D view keeps only click and box selection and the selection outline; no tool id is special to it any more.
2026-11-10: A physical sky
- The sky is light scattered through an atmosphere (
Lightingsettingsky_model, "physical" or "classic"). Blue by day, orange and pink at sunset with the afterglow that follows after the sun is down, a dark sky with stars, a faint Milky Way and a moon with its phase and craters at night, a sun disc with glare, and clouds that take the color of the light reaching them. The time of day (clock_time, or the sun's angles) drives all of it, so nothing is painted by hand. Places saved before this setting keep "classic", the flat gradient; a place with noLightingsettings and every new place get "physical". Switch it in the Place panel (View > Place settings > Lighting > Sky model). - The world is lit by that sky. With the physical sky, parts get shadows from the sun (one 2048 map around the camera, soft edges), shade filled with the sky's blue light from above and warm bounce from the ground, and distant parts fade into the horizon's haze (orange toward a low sun) so the ground meets the sky with no hard line. The fixed per-face dimming of the classic look is off in this mode: faces are told apart by the light. Past the edge of a place, where there is no ground, you see the horizon haze sinking into a darker tone, not a bright plane. The cloud cover control (
SkySettingscloud density) and the star count still apply; the clouds are real volumes, ray-marched between 1.6 and 4 km: they have flat bottoms, rounded lit tops and dark bellies, shift as you move (parallax), stack toward the horizon and sink into the haze, with a thin high veil behind them. They cost more than the old flat layer on weak GPUs. Characters are not yet shadowed by parts.
2026-11-10: Curves in Properties
- Properties edits the curves of an effect (a particle's size, color and transparency over its life; a beam's width, color and transparency; a trail's color and transparency) in a Curves section: each key has its time (0 to 1) and its value (a color has R, G and B), with a button to remove it and one to add a key (up to 16). Keys stay in time order, so one dragged past another swaps places, and a value past the effect's limit sticks at it. New plugin functions:
studio.curves()andstudio.set_curve(name, keys). Several effects of one kind edit together; the section shows the first one's keys and says when they differ.
2026-11-10: Place settings, box select and more properties
- A Place panel (View > Place settings) edits the lighting (time of day, the sun, light and ambient colors, brightness), the workspace (gravity, the height things fall out of the world, wind, the camera) and the collision groups with a matrix of which pairs hit each other. Each change is one undo step, and the 3D view shows the lighting as it changes. New plugin functions:
studio.place_settings(kind),studio.set_place_setting(kind, name, value),studio.collision_groups(),studio.add_collision_group,studio.remove_collision_group,studio.set_collidable, andstudio.part_name(id). Movingclock_timemoves the sun with it. - Dragging in the 3D view draws a box and selects the parts whose middle it holds when you let go (Ctrl adds). A click still selects one part.
- Properties for more objects. A part shows
can_touch,can_queryandcollision_group. AnAttachmentshows its offset, turn and limb. AJointshows its two parts, whether it is on, its pivot and its pose;WeldandWeldConstraintshow the two parts and the switch. A Beam, Trail or joint names a part by pressing Pick and then clicking the object.Jointis in the Insert menu and goes inside a part like an attachment.
2026-11-10: More to insert in the editor
studio.insertand the Insert menu take more classes:SpotLight,Attachmentand the effect objects (ParticleEmitter,Beam,Trail,Highlight,Vignette,Bloom,ColorCorrection,Blur,DepthOfField), each with the defaults of its kind. From the menu, an attachment or effect goes inside the selected part when one part is selected (studio.reparentnow lets attachments and effects, and only those, go inside a part).- Properties edits an effect's settings: numbers, switches, colors, vectors and the particle shape, with a
[min, max]pair as two rows (life_min,life_max).studio.settakes the same names. Several effects of one kind edit together and show(mixed)where they differ. Curves (a particle's size over its life) and the colors of a Beam or Trail are not editable in Properties yet.
2026-11-09: Plugin permissions
- Plugins need permission to reach the Studz account or the computer. Signing in or out, publishing, the store, uploads, opening pages, files, running the game, adding plugins and quitting (
studio.cloud,sign_in,publish,open_site,play,run_console,add_plugin,save_theme, and the rest listed in the plugin docs) are checked at every call. The editor's own plugins and plugins written in the editor are allowed; a plugin added from a file shows what it asks for first (add and allow, add without, or cancel), including one dropped on the window; a plugin already in the plugin folder is allowed with a switch in Settings > Plugins (studio.set_plugin_trusted;studio.plugins()returnstrusted). A refused call is an error that says what to do. - Smaller closes.
studio.open_siteonly opens pages of the Studz site (a path such as@elsewherecould open another site); an icon pack name cannot point outside the icon packs folder; a font must be a .ttf or .otf file; plugin files over 1 MB are refused; a core panel a plugin made fail tries again when plugins change.
2026-11-08: Switches, shape and layout
- Plugin switches. Every plugin but the essential ones can be turned off and on in Settings > Plugins, taking everything it added with it, no restart (
studio.set_plugin_enabled;studio.plugins()now returnsenabled,builtinandessentialtoo). The choice is kept. - More shape settings.
spacing,row_heightandbar_heightjoinradiusandtext_scaleas theme metrics (studio.theme_metrics, andmetrics = { ... }instudio.theme): the gaps and padding, the height of rows and controls, and the height of tab strips and the window's bars. - Layout options. A second group of tabs per dock (
left2,right2,bottom2) with a draggable divider, saved layouts (studio.save_layout,apply_layout,delete_layout,layouts), a lock for the layout and a bottom dock that spans the window. Dropping a tab on the lower half of a side zone makes the second group. - Icon packs. The format is written down (PNG files named like the icons), and
studio.export_icons(name)writes all the built-in icons into a pack to start from.
2026-11-07: A customizable editor
- The editor's own plugins are sealed, and open to extension. A plugin can no longer register a command, panel, tool, setting or theme with an id the editor's own plugins own. Instead:
studio.customizerenames, re-icons, moves or hides a command, panel or tool;studio.on(event, id, handler)reacts toselection_changed,document_changed,command_run,play_startedandplay_stopped;studio.explorer_decoratoradds an icon or a suffix to Explorer rows;studio.properties_sectionadds a section to Properties;studio.context_itemadds to the Explorer and 3D view menus;studio.status_itemadds to the status bar. Newui.guard(fn)runs drawing code that may fail without taking its panel down. - Themes carry more than colors. Corner radius and text scale (
studio.theme_metrics,studio.set_theme_metric), interface and code fonts from .ttf/.otf files (studio.set_look), and icon packs: a folder of .png files in theicon_packsfolder that replaces icons by name and can add new names. A theme can set all of them (metrics,fonts,icons), the person's choices go on top, and Settings > Appearance > Save as a theme (studio.save_theme) writes what you have as a theme plugin. - Better defaults. A panel can start closed (
visible = falseinstudio.panel); the Library and the Profiler now do, and View > Library or Profiler opens them (and the editor remembers that).
2026-11-06: Write plugins inside the editor
- New plugin (File menu, or Settings > Plugins) makes a plugin file from a template and opens it in a tab above the 3D view. Ctrl+S in that tab saves the file and runs it at once (
studio.new_plugin(),studio.edit_plugin(name)); the tab shows a star while it has changes that were not run. A plugin file starting with--!studiogets completions forstudio.andui., read from the plugin API. - Install as a plugin (right-click a Script in the Explorer,
studio.install_script()) turns a script of the place into a plugin: its--!serveror--!clientline becomes--!studio, and it is saved in the plugin folder and run.
2026-11-05: Copy and paste, menus, adding plugins
- Copy and paste. Edit > Cut, Copy and Paste (Ctrl+X, Ctrl+C, Ctrl+V) work on parts with what is under them:
studio.cut(),studio.copy(),studio.paste()andstudio.can_paste(). A paste is one undo step, gives new ids, and lands where the copy was, or inside the one Model or Folder that is selected. The script editor's own copy and paste now use the system clipboard, so text moves to and from other programs. - Right-click menus. The Explorer has one for rows and one for empty space (paste, insert); the 3D view has one (a right click that is not a drag); the script editor has Cut, Copy, Paste and Select all; Output can be cleared from one.
ui.right_clicked()is new for plugins that want a menu on empty space. - Add plugins from the editor. File > Add plugin... or Settings > Plugins > Add plugin... (
studio.add_plugin()), or drop a .luau file on the editor: it is checked, copied into the plugin folder and run at once.studio.remove_plugin(name)deletes one. The plugin folder is nowpluginsin%LOCALAPPDATA%\Studs, beside the settings, so editor updates leave it alone.
2026-11-04: Floating panels
- A panel can float: drag its tab to the middle of the editor (or right-click it and choose Float, or
studio.move_panel(id, "float")). A floating panel is carried by its title, resized by any edge or corner, brought to the front by a click, and remembered between runs. - Double-click a panel's tab to float it; double-click a floating panel's title to put it back. Dragging the edge between a dock and the 3D view now keeps hold of the edge for the whole drag (it let go after the first step), and the grab area is wider.
- Importing a mesh or model from a file now says why it did nothing when you are not signed in.
2026-11-03: Developer tools
- Profiler. The new Profiler panel (bottom dock, next to Output) shows where the time goes: the editor's own frame split into parts (interface, each panel, scene sync, drawing), the editor's plugin scripts, and the scripts of the game server that Play started. It samples while running, names the script, function and line that take the time, and shows each script's share.
studio.profile,profile_reset,profile_reportandframe_statsare the plugin functions behind it. - Console. The Output panel has a line that runs Dialect in the editor's plugins or in the game server's scripts (
studio.run_console):1 + 2prints 3, a call prints what it did. The server also reports its tick time, script memory and player count once a second while Play runs. - New widget
ui.progress(fraction, text). - The editor is faster on big places: with 20,000 parts an idle frame takes half the time, selecting everything a third, and dragging one part patches the scene about ten times faster.
- Adding, removing and resizing plain parts patches the editor's 3D scene in place instead of rebuilding it.
2026-11-02: Editor plugins, and vector components by key
- Editor plugins. Polycarbonate's panels, menus and toolbar are now plugins written in Dialect, and yours can add more. A plugin starts with
--!studioand runs only in the editor. See Editor plugins and the plugin reference. - Panels, commands and tools take
icon, the name of a Silk icon;ui.tree_rowtakes an optional icon too. - New plugin functions:
ui.header, a hint forui.text_edit, a filter forstudio.tree, andstudio.toggle_theme. studio.tooltakes ashortcut, andstudio.focus()frames the selection in the new 3D view.- New plugin functions for files and scripts:
studio.new_place,open,save,save_as,open_script, andstudio.outputandstudio.clear_outputfor the Output panel. A panel may usedock = "bottom".studio.insertalso makes Script, LocalScript and ModuleScript. - Every
studio.toolis also a command,tool.<id>, so its key shows in the Keymap page and can be rebound. Shortcuts may be function keys (F5,Shift+F5), and a plain letter or digit can be captured as a shortcut. - The Studz account:
studio.cloud()reports the sign-in, the account's games and the game the place came from;sign_in,cancel_sign_in,retry_sign_in,sign_out,refresh_games,open_game,publish,set_autosaveandopen_siteact on it. A place linked to a game is saved to it every 15 seconds; opening a file or starting a new place unlinks it. File > Studz Account and File > Publish use these. studio.publish_model(name, description, tags, listed)sends the selected parts, with everything under them, to the Creator Store (the Studz account window has the form). Panels in one dock are now tabs of a single panel, and the one in front fills it;ui.panel_tabsis the widget. The editor takes a picture of the 3D view a minute apart, and when it closes, to be the thumbnail of the Studz game the place came from.- The Creator Store and model import:
studio.store(kind, query, page)searches what everyone shared (model, decal or audio) andstudio.store_insert(kind, id)takes an item (a model is fetched and placed).studio.import_model()asks for a .glb or .gltf and brings it in as a Model of parts, uploading its meshes first. The Library panel has a "Creator Store" tab, and Insert has Mesh from file and Model from file. - The Library:
studio.library(kind)lists the decals, sounds or meshes uploaded to the account,refresh_library,insert_asset(kind, id)puts one in the place andupload_mesh()uploads a .glb or .gltf. The Library panel uses these; double-click an entry to insert it. - Play:
studio.play()runs the place (with unsaved changes) in a game window on a local server,studio.stop_play()ends it andstudio.playing()says whether one is running. The server's output goes to the Output panel. F5 and Shift+F5 are the built-in commands. - Polish for panels:
ui.header(text, open, icon)takes an icon,ui.drag(..., label)shows an axis label (X, Y, Z, R, G, B) in its colour, andui.icon,ui.placeholderandstudio.summaryare new. Naming an icon that does not exist is an error. - Explorer menus and moving:
studio.context_menu(commands)opens a menu of registered commands at the pointer,studio.reparent(ids, parent)moves parts under a Model or Folder,ui.tree_rowalso returns whether it was right-clicked and whether the pointer is over it, andui.dropping,ui.mouse_downandui.mouse_releasedlet a panel run a drag. - Settings, themes and layout:
studio.setting,get_setting,set_setting,reset_setting,settings;studio.theme,themes,theme_colors,set_theme_color;studio.move_panel,panels,reset_layout;studio.commands,bind,reset_keymap;studio.reload_plugins,plugins,open_plugins_folder. A panel may usedock = "window". New widgets:ui.split,ui.choice,ui.swatch,ui.icon_button,ui.capture_shortcut, andui.fieldtakes a label width. --!studiois a new directive.--!sharedscripts still mean the server and the clients, and never the editor.- Fixed: a vector's components could not be read with a key in a variable.
v[axis]withaxis = "x"gavenilwhilev.xworked. Both now work, andv:dot(w)and the other methods are unchanged.
2026-11-02: Client scripts, input, interface and messages
--!clientand--!sharedscripts now run on each player's machine. They see the world as the server last told them, andlocal_playeris the person playing. Only scripts that say--!clientor--!sharedare sent to players; everything else stays on the server. See Client scripts and interface.input:key_down,key_up,mouse_down,mouse_up,moved,wheel,cursorandis_down.ui:ui.labelandui.button, with an anchor, size, colors and aclickedsignal.net.message: typed, checked messages between client and server scripts, withsend,broadcastandlisten. Both ends validate, and a per-message rate limit protects the server.- A
LocalScriptobject with no directive still runs on clients. world:raycastnow hits players, as a box about their body, so a hitscan weapon can be written. See The world.
2026-11-01: Components, behaviors, tweens, modules, raycasts and saved data
Dialect is complete enough to build a game in. Everything here is new; nothing existing changed.
- Components.
component(name, defaults)makes a bundle of data;entity:add,:get,:hasand:removeuse it, andworld:query { has = { ... }, without = { ... } }selects on it. See Components, behaviors and modules. - Behaviors.
behavior(name, { params, start, stop, ... })is written once and attached withentity:attach(behavior, params). Parameters are checked; everything a behavior starts ends with its entity. - Tweens.
entity:tween(properties, seconds, easing?)moves numbers and vectors over time, and can be waited on or cancelled. - Modules.
--!modulescripts are loaded by name withrequire, once each. - Raycasts.
world:raycast { origin, direction, max?, ignore?, where? }andworld:raycast_allhit solid parts. See The world. - Saved data.
store(name)withget,set,increment,removeandupdate, keyed byplayer.user_id. The task that asks waits for the answer. See Saved data. - The starter scripts in Polycarbonate gain a fading door, a door behavior, a visit counter and a line of sight.
2026-10-31: Dialect, a new scripting language
Scripting is rebuilt from the ground up. This is a breaking change: scripts written for the earlier scripting API do not run. The new language is smaller on purpose, faster, and designed specifically for Studz.
The language
- Luau instead of Lua 5.4. Type annotations,
continue,+=and string interpolation, a built-in vector type that allocates nothing, and a sandbox and time limit built into the virtual machine. - Names are
snake_case:part.position,player:teleport(to),world:query { ... }. Types and classes arePascalCase. - A script is a file, and a directive says where it runs. There are no
Script,LocalScriptandModuleScriptclasses:--!server(the default),--!client,--!shared,--!module. A mistyped directive is an error. See Scripting overview.
The API
- Entities are values: cheap to pass around, comparable with
==, usable as table keys, and safe after they are destroyed. See The world. - Properties are checked when you set them, with errors that say what is wrong. An entity is never half made.
- Signals are first-class. They have types, and they combine with
filter,map,take,merge,debounceandthrottle. See Signals, scopes and time. - Structured concurrency. Every script and entity has a scope. Everything started in a scope (tasks, timers, connections) ends when the scope ends, so destroying a part stops the loops that belong to it.
all,raceandtimeoutwait for several things. - Queries.
world:query { class, within, where }asks a question, andquery:setacts on the whole answer in one call.
Compatibility
Legacy compatibility names and scripts from the earlier API do not run. Features not yet exposed in Dialect scripts are tracked in What is not here yet.
Seats, vehicle seats, welds and joints placed in Polycarbonate keep working: the game itself runs them.
