REVERA Systems Reference
Flight, falling, the procedural (IK) animation and the combat rules added with them. Last updated 25 November 2026.
Overview
This covers the systems built in the latest round of work: skydiving, the reworked jetpack, jumping out of ships, fall damage, the IK animation (blaster hold, fists, legs, gestures), saber deflection aim, and the right-click input changes.
The document has three parts: Systems (how the game is put together), Features (what players can do) and Operations (installing, debugging, open issues).
Status. Everything here compiles. None of it was run in Roblox by the author; it is play-tested by the team. The "Open issues" section lists what is not yet confirmed in game.
Two config modules tune almost all of it. They live in ReplicatedStorage > Config > GameDesign and appear in the web panel under the same names:
| Module | What it holds |
|---|---|
Flight | Skydive, wind trails, fall damage, deflection, NPC overheat, seat rules, held mouse buttons |
IK | Every setting of the procedural animation: legs, blaster hold, fists, gestures, jetpack legs |
The scripts read these tables live, so an edit in Studio or in the web panel takes effect without re-installing anything. Each script also keeps its own fallback for every setting, so deleting a line from a config never breaks a script.
Settings that already had a home stayed there: the jetpack and jump pack numbers are in GameDesign/Utilities, and the unpiloted-crash rule is per ship in ShipConfig.
Part 1: Systems
How the game is put together. Read this part first; the features in Part 2 are built from these pieces.
Where everything lives
| Place in the game tree | What lives there |
|---|---|
ServerScriptService > Services | One folder per server service (economy, quests, sieges, utilities...). The game's rules. |
ReplicatedStorage > Controllers > networkSyncedControllers | The five controller kinds that get cloned into things: melee, ranged, npc, ship, utility. |
StarterPlayer > StarterCharacterScripts > character.controller | Everything about your own character: movement, input, combat state, animation, IK. A new copy runs each life. |
StarterPlayer > StarterPlayerScripts > render.controller | Client-side drawing of every character and effect near you. |
StarterGui > Main > ui.controller | All interface: HUD, menu pages, panels, prompts. |
ReplicatedStorage > sharedModules | Code and rules used by both server and client. |
ReplicatedStorage > Config | Config modules, including GameDesign. Editable from the web panel. |
ServerStorage > Modules | Server-only helpers: fall damage, status effects, projectile damage, knockdown. |
ServerStorage > Repository | Stored copies of the data model that other places load. |
Services (server)
Each service is a folder named for what it owns, with the same three parts:
interface: the functions other scripts may call.Systems: the modules that do the work.<name>Service > server: the script that starts it and connects remotes.
Other code talks to a service only through its interface. There are about forty: account, admin, bank, base, bounty, class, combat, contract, crafting, creature, economy, exam, faction, gather, guild, location, merchant, mission, npcHandler, party, playerHandler, progression, quest, renderHandler, reputation, shipyard, siege, smuggling, spaceHandler, utility, warmachine and others. The name says what each owns.
Two are worth knowing by role:
renderHandlerrelays visual events to nearby clients and runs server projectiles.npcHandlerruns NPC brains in parallel (see Rules below).
Controllers (weapons, NPCs, ships, utilities)
A controller is a script bundle that lives inside the thing it controls: a ranged.controller in every blaster, a melee.controller in every saber, a ship.controller in every ship. Each has:
ClientSystemsandServerSystems: the two halves.<kind>Controller > clientand> server: the scripts that start them.- A stats module beside it (
weaponCfg,ShipConfig,npcConfig).
Because they are cloned, a fix to a controller has to reach every copy: the template and each one already inside a tool, ship or NPC. The installers do this by name.
Logic that must agree on both sides sits in shared modules: SharedRangedLogic and SharedMeleeLogic hold the rules for firing, aiming, blocking and attacking, and each side supplies callbacks.
The character controller
Runs on your client for your own character, with a small server half. Its systems:
| System | Job |
|---|---|
InputSystem | Turns key presses into actions and hands them to the right system |
MovementSystem | Sprint, crouch, prone, slide, roll, stance changes |
AnimationSystem | Works out the movement state and plays the matching animations |
JointRotationSystem | Turns the waist, neck and root toward where you look |
BlasterIK, FistCombat, AbilityIK | The procedural animation (see How the IK works) |
CombatSystem, AbilitySystem | Combat state and class abilities |
ClimbingSystem | Ledges and walls |
cameraHandler (instance module) | The camera: center view, shift lock, lock-on, mouse lock |
State that other scripts need is published in character.controller > stateCfg (values like subState, poised, cantMove) and as attributes on the character (Jetpacking, Skydiving, FistMode, Stance).
The render controller
Draws what you see of everyone else. It receives look angles, effects and projectile events and applies them locally: CharacterSystem (other players' joints), ProjectileSystem, WeaponEffectSystem, StanceCorrectionSystem, creature and citizen visuals, weather and atmosphere. The leg IK (ikHandler) is here too, because it runs for every nearby character.
The interface
ui.controller holds about seventy systems, one per screen or widget. They share one visual language through HoloStyle (palette, fonts, the glass panels, buttons, section headers). New interface should be built with HoloStyle so it matches. Item pictures are drawn by ItemArt.
Shared modules worth knowing
| Module | What it is for |
|---|---|
InputBindings | Every action's key and controller button. Use matches(action, input) and isDown(action); never hard-code a key. |
DataHandler / PlayerData | Player save data. Always go through these. |
LiveConfig | Applies web panel edits to config tables in a running game. |
Library | Items, factions, place ids. |
SharedRangedLogic / SharedMeleeLogic | Weapon rules used by both sides. |
CombatDefense | Decides parry, clash, block or deflect for an incoming attack. |
ProjectileNet | Player-fired projectiles: the client predicts, the server validates. |
AbilityAnimations | Plays ability and utility animations, or asks for an IK gesture when none exists. |
Config
There are three kinds of config, all editable in the web panel:
- GameDesign modules in
ReplicatedStorage > Config > GameDesign: one per topic (Utilities,Keybinds,Classes,Ships,Flight,IK...). - Stat modules that live inside things and are cloned with them:
weaponCfg,npcConfig,ShipConfig. One panel entry covers every copy with that name. - Settings tables in shared modules.
The web panel keeps the game's own values and your overrides separately. An override is merged into the live table, so scripts that read the table each time see the change at once. A script that copied a value into a local when it loaded keeps the old one until it reloads; the Flight reference below says which settings are like that.
Config reference: Flight and IK
Flight
| Section | Setting | Default | Meaning |
|---|---|---|---|
| Skydive | startSpeed | 60 | Falling speed (studs/s) at which a fall becomes a skydive |
| Skydive | minHeight | 25 | Studs of air needed below you for it to start |
| Skydive | lean | 45 | Degrees the body tips forward when just falling (0 upright, 78 flat) |
| Skydive | leanMoving | 15 | Degrees added while moving forward |
| Skydive | leanDive | 25 | Degrees added in a dive |
| Skydive | bankDegrees | 22 | Roll into a turn |
| Skydive | braceFrom / braceFull | 45 / 14 | Studs above ground where the landing brace starts and completes |
| Skydive | armedLeanShare | 0.8 | Share of the lean kept with a weapon or fists out |
| Skydive | armedSplay / armedKnee | 2.3 / 2.1 | Leg spread and knee bend multipliers when armed |
| Skydive | armedArchWaist / armedArchHips | 16 / 14 | Degrees of body arch when armed (stops the body folding) |
| Skydive | fovWiden / fovWidenReducedMotion | 14 / 5 | Field of view added at full speed |
| SkydiveTrails | limbs | hands and feet | Which parts trail |
| SkydiveTrails | texture | ship atmosphere streak | Trail picture |
| SkydiveTrails | lifetime / width | 0.7 / 2.6 | Trail length in seconds, width at the limb |
| SkydiveTrails | startTransparency / midTransparency | 0.1 / 0.5 | How see-through the trail is |
| FallDamage | enabled | true | false: landings animate, no health is taken |
| FallDamage | safeHeight | 14 | Studs you can fall for free |
| FallDamage | damagePerStud | 1 | Health per stud past the safe height |
| FallDamage | hardLandingHeight | 9 | Studs from which the hard landing animation plays |
| FallDamage | slowDescentSpeed | 50 | A held descent slower than this (studs/s) is not a fall |
| FallDamage | forceJumpImmunitySeconds | 3 | No fall damage for this long after a Force jump |
| Deflection | npcAimAtShooter | true | NPCs send deflected bolts back at the shooter |
| Deflection | npcLooseDegrees | 4 | How inaccurate that is |
| NPC | waitFullCooldown | true | An overheated NPC holds fire until its heat is back |
| NPC | cooldownShare | 1 | Share of full heat it waits for |
| Seats | stopUtilitiesWhenSeated | true | Sitting or boarding ends the running utility |
| Seats | blockUtilitiesWhenSeated | true | No utility can be started while seated |
| Input | holdLostSeconds | 0.4 | A mouse button reading "up" this long counts as released |
When a Flight change takes effect: fall damage, deflection, NPC and seat rules within a second; skydive lean and pose the next frame; skydive start and brace numbers from the next respawn; trails the next time a skydive starts; input when a player joins.
IK
IK has five sections. Legs, Blaster, Fists and Gestures each hold the full settings table of one script, with a comment on every line. JetpackLegs holds the two knee-bend numbers for flight. The section Animation and IK explains what they control.
Elsewhere
| Where | Setting | Meaning |
|---|---|---|
GameDesign/Utilities > List > Jetpack | riseSpeed, flySpeed, thrustSpeed, liftFloors, minFuelToStart, recoil multipliers | Jetpack flight numbers |
GameDesign/Utilities > List > JumpPack | upwardSpeed, forwardSpeed, cooldown | Jump pack burst |
each ship's ShipConfig > UnpilotedCrash | { enabled = true, impactSpeed = 60, lostShare = 0.5 } | When a ship with nobody at the controls explodes on impact |
Animation and IK
Animations here come in two layers. Recorded animations play first: the movement set, weapon stances, attacks. IK is then laid over them each frame for anything that has to point at or reach for something.
The idea
A normal animation plays back a recorded pose. IK works the other way round: the code decides where a hand or foot should be this frame, and the joints of that arm or leg are solved to put it there. That is how a blaster follows the crosshair, a fist travels to its target and feet find the ground.
It is laid over the normal animations every frame, after they have run. Turn an IK system off and you see the animation that was underneath all along.
Solving one limb
Every arm and leg is solved the same way, as a two-bone chain:
- Take the root of the limb (shoulder or hip) and the target point for its end (wrist or ankle).
- The two bone lengths and the distance to the target form a triangle, which fixes the angle at the middle joint (elbow or knee).
- A pole direction picks which way that middle joint points, since the triangle could swing anywhere around the line from root to target. For arms the pole is "down and a little outward", so elbows hang naturally.
- If the target is further than the limb can reach, the limb straightens toward it.
So tuning IK is almost always about one of two things: where the target is, or which way the elbow or knee points.
The four systems
| System | What it does | Script | Config section |
|---|---|---|---|
| Legs | Feet planted and stepping under an armed character | render.controller > instanceModules > ikHandler | IK.Legs |
| Blaster | Places the weapon, then solves both arms to hold it | character.controller > Systems > BlasterIK | IK.Blaster |
| Fists | Stance, guard, punches and parry | character.controller > Systems > FistCombat | IK.Fists |
| Gestures | One-off gestures and held poses for abilities and utilities | character.controller > Systems > AbilityIK | IK.Gestures |
Who moves which joints
Two systems never write the same joint at the same time. This table is the rule each one follows.
| Joints | Owner | Gives way when |
|---|---|---|
| Hips, knees, ankles | Legs | Sprinting, jetpacking or skydiving: the animation or the flight pose has the legs |
| Shoulder, elbow, wrist | Blaster while a blaster is out; Fists while fists are up | A gesture needs an arm: the blaster's support hand lets go and returns after it |
| Waist, neck, root | The look direction (JointRotationSystem) | Fists and gestures add their own lean and twist on top |
Blaster: the weapon is placed, the hands follow
The blaster IK does not move hands to a gun. It decides where the gun sits and where its barrel points, then solves the right hand to the grip and the left hand to the support point.
There are three holds, blended smoothly:
- Rest: weapon out but not readied, or sprinting or in the air. Low across the body, muzzle down.
- Ready: readied, hip fire. In front of the ribs, barrel on the aim.
- Aim: stock to the shoulder, barrel on the aim.
The support hand goes to a point on the weapon: a part or attachment named LeftGrip, OffHand, Foregrip or similar, or a point worked out along the barrel. It lets go when that point is further than OFFHAND_MAX_REACH of the arm's length, except in jetpack flight and skydives, where it holds on.
The overheat gesture is also IK: the weapon tips up and across the body and shakes, and the support hand comes off the barrel (OVERHEAT_* settings).
The blaster IK stands down, and the animation shows through, when seated, downed, ragdolled, climbing, swimming, rolling, or under any action-priority animation that is not one of the weapon's own holds (reload, equip, abilities).
Fists: positions measured from the shoulder
Each fist has a place for each situation, written as Vector3(toward the body's middle, up, forward) from its own shoulder, in arm lengths:
GUARD_LEADandGUARD_REAR: the loose idle stance.BLOCK: the guard, both forearms up in front of the face. The third number is how far forward.WINDUP_AT: where a punch draws back to.
A punch moves the fist from its stance place out to the target and back, while the waist and hips turn with it. While crouched, the positions are measured along the chest (which the crouch pitches forward) instead of the upright root, and the stance's own lean and body turn are mostly removed.
Legs: planted feet
With a weapon out or fists up, each foot is planted on the ground and stays there while the body moves over it, then steps to a new spot when it falls too far behind. The leg IK is off while sprinting (the sprint animation runs the legs), jetpacking and skydiving.
Gestures: clips and held poses
When the server uses an ability or a utility, it looks for a real animation named after it in ReplicatedStorage > Assets > Animations > Abilities. If there is none, it stamps the character instead, and the gesture system draws a built-in gesture for that name:
- A clip is a short keyframed gesture (a Force push, throwing a grenade, applying a medkit).
- A held pose lasts as long as something is active (a raised gauntlet, a choke, the jetpack).
Three held poses matter for flight and combat:
- Jetpack: the hovering legs. One knee drawn up, the other trailing. They hang long when climbing, tuck when sinking, trail when flying forward, and bend at the knee when thrusting or veering (
IK.JetpackLegs). They stay on under any other pose while you fly, so using a kit in flight does not drop them. - Grabbed and choked victims: head back, legs kicking, body lifted. These draw even though the victim is stood down by the server.
- With fists up or a weapon out, the jetpack's hanging-arm pose is not applied: the arms belong to the fists or the weapon.
Units
| Unit | Meaning |
|---|---|
| Arm lengths | A hand position as a share of the character's own arm (0.5 = half an arm out). Scales with any character size. |
| Angles | Written math.rad(degrees) in the module. The web panel shows plain radians: degrees x 0.01745, so 0.35 is 20 degrees. |
| Rates | "Exp rate": bigger is snappier. 10 gets most of the way in about 0.2 seconds. |
Tuning recipes
| You see | Change |
|---|---|
| A blaster sits wrong in the hands | IK.Blaster: READY_GRIP, AIM_GRIP |
| The support hand lets go too easily | IK.Blaster: OFFHAND_MAX_REACH, OFFHAND_KEEP |
| Overheat gesture too strong | IK.Blaster: OVERHEAT_UP, OVERHEAT_YAW, OVERHEAT_CANT, OVERHEAT_SHAKE |
| A weapon points the wrong way | Attributes on that Tool: IKBarrelAxis, IKUpAxis (read every second) |
| Fist guard too close to or far from the face | IK.Fists: BLOCK, third number |
| Idle fists in the wrong place | IK.Fists: GUARD_LEAD, GUARD_REAR |
| Punches reach too far or not far enough | IK.Fists: RANGE, REACH |
| Elbows too tucked or too flared | IK.Fists: ELBOW_IN; IK.Gestures: ELBOW_OUT |
| Gestures too slow or abrupt | IK.Gestures: SPEED, FADE_IN, FADE_OUT |
| Knees too straight in jetpack flight | IK.JetpackLegs: kneeForward, kneeVeer |
To see which gesture the server asked for, leave IK.Gestures.DEBUG_PRINT on: each gesture or held pose on your own character prints one line.
Input and camera
Input. Actions are named (Aim, MeleeBlock, Sprint...) and bound in InputBindings. A press is checked with matches; a hold with isDown. Aim, saber block and fist guard are holds: they last while the right button is down.
- Held-button tracking. A mouse button's state is tracked from its own press and release events. A release only counts if the button still reads up a moment later, or has read up for
holdLostSeconds. - Aim. A press made at a bad moment (mid-jump, during a roll, within 0.2 s of the last aim change) is remembered while the button stays down and goes through as soon as it can.
Camera. cameraHandler runs on top of Roblox's default camera. It adds center view (mouse locked to the middle), shift lock, lock-on and the aim zoom, and it owns the mouse lock.
- The game's own pan. Roblox's camera normally takes the mouse lock on every right click.
Add_OwnCameraPan.luaswitches that off. With the mouse locked, a right click no longer touches the mouse lock. With the mouse free, hold right and drag turns the camera.
Right click is not yet confirmed fixed. See Open issues.
Places, publishing and rules
- One asset, many places. The game's scripts are published as asset 112479672868869. Other places load that data model, and
ServerStorage > Repositoryholds stored copies. A change must be applied to every copy and the asset updated. - Installers. Changes arrive as Command Bar scripts run in Studio Edit mode. A patch installer replaces one exact piece of text in each matching script and reports how many it patched. A whole-script installer (the Sync parts) writes complete scripts.
- Parallel code. NPC brains and some projectile code run in parallel. Code there must not call
game:GetService; use what was fetched when the module loaded. - Save data. Use
DataHandlerandPlayerData. Never read or write the raw JSON data value. - Regenerating meters. Stamina, heat and similar values go through the shared regen helper (
shared.__Regen), which works out the current value from a timestamp instead of ticking.
Part 2: Features
What players can do, built on the systems above.
Skydive
A fall becomes a skydive once you are dropping at startSpeed or more with at least minHeight of air below you. It works for any fall: off a cliff, out of a ship, or when a jetpack goes out. Lighting a jetpack cancels it.
- Pose. The body leans toward the ground (45 degrees at rest, up to 85 in a dive) and banks into turns. Arms ride the air, legs scissor slowly, and the whole body is buffeted harder the faster you fall.
- Landing. Below
braceFromstuds the body straightens, the legs reach down and the arms spread. - View. Center view is forced and the character turns with the camera, as when sprinting with a weapon. The field of view widens with speed.
- Weapons. You can shoot, aim, punch and guard while skydiving. With a weapon or fists out the arm motion is replaced by the weapon's hold, the legs spread wider and the body keeps a slight arch.
- Trails. White wind trails come off the hands and feet, made by the server so everyone sees them.
Jetpack
The jetpack is a toggle: use it once to light it and float, again to put it out.
| Input | Keyboard | Controller | Effect |
|---|---|---|---|
| Rise | Space | A | Climb |
| Descend | Left Ctrl | B | Sink |
| Thrust | Left Shift | L3 | Fly forward along the camera, body laid forward |
| Veer | A / D | Left stick | Bank left or right |
- Fuel. It burns fuel cells (item
UJF, 30 seconds each), loaded automatically, in flight too. With no cells left it falls back to a small reserve tank that refills. A holo fuel bar sits at the right edge of the screen. - Weapons. You can use weapons and fists in every mode. Attacking does not cancel the thrust.
- What puts it out. Running dry, being downed, taking a seat or boarding a ship, or taking it off the belt.
- Sprint. Shift is thrust only while flying; it never starts a sprint.
Ship jump and bail
- Jumping out. In a ship, press Space once to see "Press Space again to jump out of the ship", and again to jump. It works at any altitude and in any place except hyperspace, an arrival, or a destroyed ship.
- The pilot. When the pilot jumps, the engines cut and the ship falls. If it then hits something at 60 studs/s or more with fuel or cannon gas aboard, it explodes.
- Crew. If the pilot has left, a crew member can take the controls.
- Orbit. Jumping out in orbit puts you in space: gravity takes over and you suffocate, with ice building up on the character. Press E in time to re-enter the craft.
- Sector edge. A player who jumped out and passes the sector's edge travels at once, or is put back inside on a walled side.
Fall damage
The rules are deliberately simple.
- The first 14 studs are free. Past that, 1 health per stud.
- A Force jump gives 3 seconds in which a landing does no damage, whatever the height. Nothing else is an exception.
- Anything that makes you rise starts the fall over from there: a jump pack's burst at the last second, or a jetpack lifting off.
- A slow, held descent (under 50 studs/s, like a jetpack coming down) is not a fall.
- Never a fall: landing in water, seats and ships, orbit, already downed.
The detection was hardened against five ways a real fall could be missed: invisible volumes counting as ground, landings on edges and railings, being inside a parked ship's bounding box, landings noticed late, and teleports downward reading as falls.
Combat rules, tutorial and Force tear
- Deflection. A deflected bolt goes where the defender is looking, up and down included. NPCs send it back at whoever fired it when that shooter is in front of them.
- NPC overheat. An NPC whose blaster overheats waits for the full cooldown before firing again.
- Seats. Taking a seat or boarding ends the running utility, and none can be started while seated.
- Tutorial. It is fought with fists: raise them, then punch the training post three times. Weapons are set aside while in the tutorial and returned at its end. Real punches are counted, not clicks.
- Force tear.
Redesign_ForceTear.luaadds aTearFXfolder to everyPortal: a jagged glowing crack, sheets of light, arcs, motes drawn inward, embers, ground glow and mist.SCALE,HIDE_OLDandREVERTare switches at the top of that script.
Part 3: Operations
Installing, debugging and what is still open.
Installing
All installers are Command Bar scripts, run in Studio Edit mode. Update asset 112479672868869 afterwards.
- Run
Install_ConfigModules.lua. It createsFlightandIKin every copy ofConfig > GameDesign. Modules that already exist are kept unless you setOVERWRITE = true. - Run
Sync_All_Part1of5.luatoSync_All_Part5of5.lua. Each writes whole scripts at their current version, so nothing is left half-installed. They replace the earlierSync_SkydiveJetpackparts and include the config wiring. - Optional, not in the Sync parts:
Add_OwnCameraPan.lua,Fix_JetpackNoSprint.lua,Redesign_ForceTear.lua,Fix_TutorialNoDuplicateWeapons.lua,Update_TutorialPunchStep.lua, and the render-service half ofFix_DeflectAim_JetLegsKits_OverheatCalm.lua.
If you would rather patch than replace whole scripts, Install_ConfigWiring.lua applies only the config wiring to scripts that already have every earlier fix.
Debug commands
Paste these into the Command Bar during a play test. They change nothing.
| File | Side | Shows |
|---|---|---|
Debug_RightClick_ClientCommand.lua | Client | A timeline of right-button events, mouse lock mode, aim and guard state |
Debug_LegsOverheat_ClientCommand.lua | Client | Playing animations, held-pose stamps and leg angles while flying or overheated |
Debug_Deflect_ServerCommand.lua | Server | Each player's look pitch as the server has it |
Workspace attributes: DebugProjectiles = true (server projectile log) and NoRegHUD = true.
Open issues
These are not confirmed in a play test.
- Right click releasing early. Reported by two players. Three fixes are installed or available (aim retry, steady hold, own camera pan). A timeline from the right-click debug command, taken with all three installed, is needed to confirm or to find the remaining cause.
- Deflection aim, legs under kits, overheat shake. The patches are installed and verified present, but were reported as having no visible effect. The two debug commands for legs/overheat and deflection will show why.
- Limb trail texture. The trails carry the ship streak texture; whether it reads correctly in game is unconfirmed.
- Settings page looked unchanged after the menu restyle; the installer's output line for it is needed.