Lesson 3 of 6

Rigging and skinning in Blender, part 2: bones in Roblox

Bring a rigged Blender mesh into Roblox. Export with bones, import a skinned MeshPart, drive Bone instances from a client script, and see where Avatar Setup fits.

Tool lesson, about 70 minutes, 10 steps

By the end you can

  • Export a rigged mesh from Blender and import it so its bones arrive as Bone instances in a skinned MeshPart
  • Spin the drone's rotor bones on the client and explain why Bone.Transform is not set on the server
  • Say what the Avatar Setup tool automates, and when a studio uses it instead of rigging by hand

Before this: Rigging and skinning in Blender, part 1: an armature for the drone

Step 1 of 10

The same skeleton, now in Studio

You built a drone with six bones in Blender. After import, Studio shows them as Bone instances nested inside the MeshPart, in the same hierarchy and with the same names. Turn on Show Constraint Details from the View menu and they appear as points inside the mesh1.

Here is the drone before you joined its parts and added bones:

Blender
The drone in Blender before joining for rigging: a red box body selected as Drone with five child mesh objects (four flat grey rotor discs and eye) collapsed under it in the Outliner, reading Objects 1 / 6 and Triangles 84 / 304.

Select a numbered pin, or a row below, to read what it marks.

The four grey rotor discs are the pieces that follow the rotor bones once joined and rigged.

Choose one

In Blender the bone is named RotorFL. What is its name in Studio after import?

In Blender the bone is named RotorFL. What is its name in Studio after import?

Press 1 to 4 to choose, Enter to check.

Link to this step · This confused me

Step 2 of 10

Export with the armature

Select the mesh and the armature, then File, Export, FBX. Roblox's export settings for a rig add three rules to the prop settings you already use: select the armature together with the mesh, turn Add Leaf Bones off, and leave Bake Animation off unless you are exporting keyframes2. Leaf bones are extra end bones Blender adds to mark each chain's length; Roblox does not need them.

Roblox's general specifications repeat the earlier rules at export time: bones at rotation 0 and scale 1, the root at the origin, no root influences, at most four per vertex. An FBX can carry only one animation track, so separate clips need separate exports3.

Rig and mesh travel together

Selecting only the mesh exports a mesh with weights that point at bones that are not in the file. Always select both.

Choose one

You exported with Add Leaf Bones on and imported with Keep Zero Influence Bones on. What extra objects can appear in Studio?

You exported with Add Leaf Bones on and imported with Keep Zero Influence Bones on. What extra objects can appear in Studio?

Press 1 to 4 to choose, Enter to check.

Link to this step · This confused me

Step 3 of 10

Import a skinned MeshPart

In the Importer, a file with rig data shows the Rig General section. Rig Type offers R15, Custom and No Rig, and the Importer tries to pick the right one from the rig it finds; for a drone, Custom is right. Keep Zero Influence Bones is off by default, so bones that move no vertices are removed4.

That default bites the drone: Root deliberately has no influence. If your Root bone is missing from the tree after import, import again with Keep Zero Influence Bones on. As before, do the first import with Upload to Roblox off and read the warnings.

Choose one

After import the drone's bones start at Body, and Root is gone. What changed and what do you do?

After import the drone's bones start at Body, and Root is gone. What changed and what do you do?

Press 1 to 4 to choose, Enter to check.

Link to this step · This confused me

Step 4 of 10

Spin the rotors on the client

A Bone works like an Attachment that also bends the mesh. Its Transform property is an offset from the rest pose, and the Bone reference says Roblox does not replicate or save it5. Motor6D has a Transform too, and works the same way. A server script that sets either would be wasted: no player would see it.

So the spin belongs on the client, and Beacon Yard's m13-art-pass milestone (which this lesson's build-along targets) adds RotorClient.luau to do it. RotorClient finds every joint or bone whose name starts with Rotor, advances one angle per drone, and writes it to all of them. Every other rotor turns the other way, like a real quad:

local function step(dt: number)
	local seen: { [Instance]: boolean } = {}
	local reduced = Accessibility.reducedMotion()
	for _, root in CollectionService:GetTagged(DRONE_TAG) do
		local model = root.Parent
		if model ~= nil and root:IsDescendantOf(workspace) then
			seen[model] = true
			local rig = rigs[model]
			if rig == nil or #rig.joints == 0 then
				-- Parts can stream in after the model, so look again until
				-- the joints are there.
				rig = { joints = findJoints(model), angle = if rig then rig.angle else 0 }
				rigs[model] = rig
			end
			rig.angle = (rig.angle + RotorClient.speedFor(isStunned(root), reduced) * dt) % (2 * math.pi)
			for index, joint in rig.joints do
				-- Every other rotor turns the opposite way, like a real quad.
				local direction = if index % 2 == 0 then -1 else 1
				local turn = CFrame.Angles(0, rig.angle * direction, 0)
				-- Motor6D and Bone both have Transform, so one line serves both.
				joint.Transform = turn

The speed comes from Config.ROTOR_SPIN_SPEED, 40 radians per second. Try the arithmetic the script does each frame:

Luau
Ctrl Enter runs the cell. Checked against the expected output
Choose one

Why does the cell print 3.717 after 15 frames?

Why does the cell print 3.717 after 15 frames?

Press 1 to 4 to choose, Enter to check.

Link to this step · This confused me

Step 5 of 10

Or animate the bones

A script is fine for a spin you can write as a formula. For anything authored, such as the drone dipping when stunned or folding its arms, you animate the bones instead. Rigged meshes work with the Animation Editor like any rig, and the clip plays through an Animator inside an AnimationController on the model1. You can also key the animation in Blender and export it, one track per FBX3.

Code for formulas, clips for timing

If you can write the motion as a formula, such as a steady spin, a script is shorter. If an artist needs to time it by eye, it should be a clip.

Match the pairs

Match each drone motion to the tool you would reach for.

Link to this step · This confused me

Step 6 of 10

Where Avatar Setup fits

Studio's Avatar Setup tool rigs for you, but only for avatar items. It can add an R15 rigging armature to a body, skin it, generate facial animation data, add cages for layered clothing, split a body into the 15 R15 parts, and add accessory attachments. Its Development Avatar preset makes a less strict setup for NPCs and starter characters; Platform Avatar is for items sold on the Marketplace6.

A drone is not a body or an accessory, so Avatar Setup does not apply. If Beacon Yard ever gets a humanoid NPC, that is when it earns its place.

Choose all that apply

Which jobs would you hand to Avatar Setup?

Which jobs would you hand to Avatar Setup?

Press 1 to 4 to choose, Enter to check.

Link to this step · This confused me

Step 7 of 10

What bones cannot do

Bones move the costume. Before you open the breakdown, decide what they do not move.

Where does it break?“A mascot costume over a player on the field” is a good picture of a mesh on a gameplay part. Where does it stop being true?

It breaks here. A MeshPart is a full BasePart: turn its collision or touch back on and the costume starts playing the game, blocking players or firing Touched.

The true model. Any MeshPart can collide, be touched and carry scripts. Beacon Yard chooses to keep rules on plain parts and switches those properties off on every visual, so art changes cannot change gameplay.

Because bones deform only the visible mesh costume, Beacon Yard keeps hit detection on the server's distance check rather than on spinning rotor blades. That wraps up the puppet picture as well: once you know which joints drive the mesh and which colliders drive gameplay, you can rig with the real engine rules directly.

Retiring the analogy

You no longer need “the wooden frame inside a puppet”. Each vertex stores a weight per bone, and its final position is the weighted blend of where those bones would carry it. Weights of 1 on a single bone give rigid parts; shared weights give smooth bends.

Choose one

A rotor bone swings a long blade out 3 studs past the drone body. Can the blade hit a player?

A rotor bone swings a long blade out 3 studs past the drone body. Can the blade hit a player?

Press 1 to 4 to choose, Enter to check.

Link to this step · This confused me

Step 8 of 10

Build it: the rigged drone in Studio

Other ways pros do this

OptionWhat it isWhen pros pick itTrade-offs
Rig by hand in BlenderArmature, bones and weights you place yourself.Machines, creatures and anything not humanoid.Slowest, most control.
Avatar SetupStudio's automatic rigging, skinning, caging and partitioning for avatar bodies and accessories.Humanoid bodies, NPCs that use R15 animations, Marketplace items.Avatar items only; check its output like any generated asset.
Rig in MayaThe same armature and skin work in Autodesk's package.Teams whose riggers trained on Maya; Roblox documents Maya export settings.Paid licence; fewer Roblox-specific tutorials.
Animate in StudioStudio's Animation Editor, or the paid Moon Animator plugin, on an imported rig.Gameplay animators who want to see the result in the game while they key.Less powerful curves and tools than Blender or Maya.

Retiring the analogy

You no longer need “a mascot costume over a player on the field”. Any MeshPart can collide, be touched and carry scripts. Beacon Yard chooses to keep rules on plain parts and switches those properties off on every visual, so art changes cannot change gameplay.

Build along

m12-money to m13-art-pass

  • assets/roblox/DroneRig.rbxmx
  1. In Blender, select the drone mesh and its armature, export FBX with Selected Objects, Forward Z Forward, Up Y Up, Apply Scalings FBX Unit Scale, Add Leaf Bones off and Bake Animation off. The rotor positions in the last lesson came from a Forward -Z export, so the file may face the other way in the Importer preview; the bone names and tree, which the check reads, do not change.

    You should see drone-rig.fbx is written; the export included the armature.

  2. Import with Upload to Roblox off, Rig Type Custom and Keep Zero Influence Bones on. Expand the result in Explorer.

    You should see Explorer shows a Model with a MeshPart that contains Root, Body and the four rotor Bones.

  3. Turn on View, Show Constraint Details and select RotorFL in Explorer. In the command bar run game:GetService("Selection"):Get()[1].Transform = CFrame.Angles(0, math.rad(45), 0), and run it again with CFrame.new() to put the rotor back. Transform is the pose offset that deforms the mesh, the property animations and RotorClient write. CFrame and Orientation set the rest pose and move the bind with it, so they are the wrong way to test a spin.

    You should see The rotor bones appear as points in the viewport, and the rotor on RotorFL turns 45 degrees when you set its Bone's Transform.

  4. Import again with Upload on, rename the Model to DroneRig, right-click it and Save to File as assets/roblox/DroneRig.rbxmx (a git-ignored folder), then rebuild the place.

    You should see assets/roblox/DroneRig.rbxmx exists and, after a rebuild, ReplicatedStorage.Assets.DroneRig is in Explorer.

Link to this step · This confused me

Step 9 of 10

Challenges

Level 1, Apprentice

Challenge

Import your rig without uploading and read the Bone tree back. Delete the import afterwards.

Start from
A rigged FBX imported with Upload off

Done means

  • You can name every Bone in the MeshPart and say which one is the parent of the rotors

Meet the criteria above, then record your own result. No test grades this check.

Choose one

A teammate spins the rotors from DroneService on the server by setting Bone.Transform. What do players see?

A teammate spins the rotors from DroneService on the server by setting Bone.Transform. What do players see?

Press 1 to 4 to choose, Enter to check.

Level 2, Builder

Challenge

Make a hurt drone's rotors race. Check out m13-art-pass (where RotorClient.luau and challenges/rotor-spin.luau live); the steps are in challenges/solutions/rotor-spin.md. Run it on the client.

Start from
The game at milestone m13 (download)
Grade it
To grade work from an earlier milestone, apply your challenge changes to a checkout based on m14-ship, which includes the Course Runner. In Studio, press Play, then run require(game.ReplicatedStorage.GameTests.RunChallenge)("rotor-spin", "blender-rigging-2-spin") in the client command bar. Copy the pass code from Output.

Done means

  • RotorClient.speedFor takes a third argument, healthRatio
  • At full health the speed is ROTOR_SPIN_SPEED, at half health 1.5 times that, and with no health twice that
  • Stunned and reduced motion keep their own speeds, and reduced motion still wins over health
  • The client test prints TEST PASS rotor_spin_health

The Course Runner prints this code when the test passes.

Level 3, Professional

Challenge

Get your rigged drone into the place with the bone tree the game will rely on. The check (challenges/blender-rigging.luau) is in the game repo at m14-ship, and the steps are in challenges/solutions/blender-rigging.md.

Start from
The game at milestone m14 (download)
Grade it
In Studio, press Play, then run game.ServerScriptService.RunGameTests:Invoke("blender-rigging", "blender-rigging-2-rig") in the server command bar. Copy the pass code from Output.

Done means

  • ReplicatedStorage.Assets.DroneRig is a Model with one MeshPart that has a MeshId
  • That MeshPart contains Bones named Body, RotorFL, RotorFR, RotorBL and RotorBR
  • All four rotor Bones are descendants of the Body Bone
  • The test prints TEST PASS for rig_model, rig_bones and rig_hierarchy

The Course Runner prints this code when the test passes.

Link to this step · This confused me

Step 10 of 10

Recap

Recap

  1. Export mesh and armature together with Add Leaf Bones and Bake Animation off; import as a Custom rig, and keep zero-influence bones if Root must survive.
  2. Bones arrive as Bone instances inside one skinned MeshPart; Bone.Transform poses them and is not replicated, so cosmetic spins run on the client.
  3. Avatar Setup automates rigging, skinning and caging for avatar bodies and accessories, not for machines like the drone.

An armature and its bones is the wooden frame inside a puppet, until cloth is sewn to one stick, but a vertex can be split between up to four bones, moving part of the way with each; that blend is how skin bends at an elbow.

A mesh on a gameplay part is a mascot costume over a player on the field, until a MeshPart is a full BasePart: turn its collision or touch back on and the costume starts playing the game, blocking players or firing Touched.

Next PBR textures: maps, Material Maker, Substance and CC0 libraries

Link to this step · This confused me