So for the past month, I have been trying to learn how to animate first person shooters. Basically, if you have ever played a first person shooter, such as Arsenal or Phantom Forces, you would notice that they have arms, guns and animations, all that sort of stuff.
Well, I’ve spent months trying to perfect it and learn it. I have watched every tutorial online that people can provide. I found Falco Blockland’s tutorial and it was all useful but it was lacking some information, some very important informations. I then went on and watched a 3 hour video of someone animating their own weapon within blender. I carefully watched the rigging part and the rig rebuilding inside of blender itself. I’m here today to teach you how to do this because I don’t want anyone having to spend months trying to figure it out to just find things not understandable.
▬▬▬▬▬▬▬▬▬▬▬▬RIG MODELING▬▬▬▬▬▬▬▬▬▬▬▬▬▬
If you already have one, feel free to skip. Or you could get this model instead if you don’t feel like learning how to make a weapon rig:
WeaponRigModel: https://www.roblox.com/library/5059336573/WeaponRig
Making the Weapon Rig
So firstly, one thing that was lacking from Falco’s tutorial is that he never showed us how to get or make a weapon rig. I will provide you a weapon rig but if you want to make your own, here’s how:
Open up blender and delete their preset stuff. Go ahead and add in a cube and make it as long as you want, not too long, about the average size of an arm.
Example
Steps:
- To add in an object, press: Shift + A (Mac AND Windows)
- Select "Cube"
- Pressing “S” will allow you to scale your part
- Pressing “S” and “x”, “y”, or “z” will allow you to move it on that axis. For my example, I pressed “S + X” to move it in the X-axis.
Next up, we will make it smoother. Currently it has harsh edges. In order to do this, we will bevel the edges.
Example
Steps:
- To enter edit mode, press the tab button on your keyboard.
- Pressing 2 will allow you to select the edges of the block.
- Select the four edges on the long end.
- Pressing “Ctrl + B” (CMD + B for macs).
- Drag with your mouse and it will bevel your edge. Make sure to not make it too much. Keep it minimal.
- Pressing “Left Click” to confirm edit. Pressing “Right Click” will revert the changes.
Moving on, we will now round out the edges of the ends. This is as simple as the last step.
Example
Steps:
- Once again, go into edit mode by pressing tab.
- Pressing 3 will allow you to select the block’s faces.
- Press one of the faces.
- Press “E” to extrude the face.
- Using your mouse, extrude it outward. Make sure to not go too big with it.
- Press “Left Click” once you have decided how big you want it. Pressing “Right Click” will revert the changes.
- From here, you press “S” to scale it smaller. It should push all edges in and make a smooth edge.
- Repeat steps 3-7 on the other face.
That’s about it for the modeling of the rig’s arm. DO NOT DUPLICATE THIS AND ADD ANOTHER ARM! This is just for easy fixes.
In order to import this into ROBLOX, go ahead and download this plugin made by @ForyxeV: https://www.roblox.com/library/3153852564/Easy-Mesh-Importer
This just helps make it easier for us both. You can always import it with ROBLOX’s mesh part but, I find that annoying.
Heading back to blender, go into:
File > Export > FBX (.fbx) > Wherever you’d want to save it.
Now we move to ROBLOX studio and import it. Firstly, make sure you installed that plugin which will make life 10x easier.
Example
Steps:
- Go into Plugin tab
- Select Mesh Importer and find your file.
- It will end up spawning in very big, you can easily scale it down to your preferred size.
Once you have your arm small enough to your liking, you will now duplicate it and put it side by side. Name one “Left Arm” and the other “Right Arm”.
Duplicating
After that, group both arms together and add in a part and name it “HumanoidRootPart” and position it in the middle of the arms in the far back.
HumanoidRootPart
Make the HumanoidRootPart the model’s PrimaryPart.
PrimaryPart
This next map is optional but, add a Camera Part, this is just to help position your camera easier later on inside of blender.
Camera Part
Our next step might be a little confusing but I’ll make it easier to understand. Basically, we will now be rigging the model up so that we can move limbs later on. In order to do this, you will require another plugin by Archy_Mage:
RigEdit Lite: RigEdit Lite - Roblox
Rigging The Model
Steps:
- Select the model
- Go into the “Plugin” tab and select "RigEdit Lite"
- Go into “Workspace” and select "HumanoidRootPart"
- While selecting “HumanoidRootPart”, select one of the arms. You can select them both too. Press "Create Joints"
- Move both joints 2 studs to the front. This will later on put ease on rotating your animation’s arms.
- Create another joint for the “Camera” part also.
Make sure to add a “Humanoid” into your weapon rig model.
Humanoid
That’s it for making the weapon rig model!
▬▬▬▬▬▬▬▬▬▬▬▬GUN RIGGING▬▬▬▬▬▬▬▬▬▬▬▬▬▬
In order to rig a gun, you must first get a gun. For this example, I will do a simple pistol that I modeled a while ago.
You can start by positioning your gun somewhere close to your dominate arm. Basically the arm that will be mainly holding the gun. Mine will be the “Right Arm”. Move the gun model into your rig after you’re done with that.
Positioning and Moving Gun
To continue, you will now create welding parts for your weapons. Basically:
Welding Parts
Make sure to name the parts according to their appropriate positions. Make sure to also name your guns according to what they are. If it’s a MAG, name it MAG.
Naming
That should be it to setting up the gun itself for rigging.
After this, open up the “RigEdit Lite” again and begin rigging your gun to your rig. Firstly, weld both your “Weld Parts” and “Main Parts” together:
Welding Parts Together
If your gun has multiple parts, be sure to weld whatever it is together. If your gun, for example, has a silencer, weld it together as if it was also part of the Base.
One final thing to do is to create joints for the “Weld Parts” to the “HumanoidRootPart” Be sure to select the HumanoidRootPart first then the weld parts.
That’s all it is for rigging the gun up to the weapon rig itself.
Our next step is to move it to blender.
▬▬▬▬▬▬▬▬▬▬▬▬MOVING RIG TO BLENDER▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Yet again, we need another plugin to help assist us in this. Get this plugin by @Den_S:
Blender rig exporter/animation importer: https://www.roblox.com/library/716953901/Blender-rig-exporter-animation-importer
The first thing we must do is get a blender add-on that will allow us to move this rig into blender. Head over to @Den_S’s DevForums post: Blender rig exporter/animation importer
Go into it and find the paste bin for the script. He provided 2 versions, blender 2.8 and blender 2.79. I recommend using blender 2.8 for this. Anyways, go into the pastebin and save that entire thing as a .py file. (Weaponrig.py)
Head into blender and select:
Edit > Preferences > Add-ons > Install > Wherever your file is located > Install Add-on and make sure it’s turned on. It’s called Animation: Rbx Animations
Installing Add-on
Now that you have this plugin and add-on, we can now proceed onto importing the weapon rig into blender. But first, make sure everything is unanchored except for the "HumanoidRootPart"
To import it into blender, do the following:
- Go into ROBLOX Studio
- Open up the Plugin tab and select “Blender rig ex’ / animation imp’”.
- Once you press it, it should ask you to select a rig. Select the rig we just made.
- Due to the nature of blender, its orgin point is the same as ROBLOX’s orgin, (0,0,0). We would want the model to be in the center of everything so we won’t have to go searching for it. Change your “HumanoidRootPart” position to (0,0,0) and move the entire model up a bit.
- Select the entire model and press "Export Rig"
- Save it wherever you want so you can easily find it.
- Press “Clean Meta Parts” to clear the extra parts the plugin added.
- Head into blender and do the following:
File > Import > Rbx Animation | Rig Import > Find where you saved your rig > Import Rig Data - It should appear right in the center of blender. If not, you probably didn’t change its position.
Getting the model right in ROBLOX STUDIO
Importing it into BLENDER
So far, the model should be inside of blender. Notice how you can’t really do anything yet. That is because the rig isn’t inside blender yet. In order for it to appear, you have to rebuild the rig itself. To do this:
- Go to the right side and open up the… side bar? I don’t know what it’s called (video below).
- Locate “Rbx Animations” and press it.
- Press on "Rebuild Rig"
- Open the drop down menu and press "Node Only"
- Press "OK"
Rebuilding Rig
The rig should now appear on screen. Though, it is not yet completed. There are a few things we have to do before continuing onto animating it. We have to connect the MAG and SLIDER to the MAIN part of the gun itself and connect the arm to the gun too. In order to do this we must:
- Select the rigs, aka the bones that are there.
- Go into “Pose Mode” by going to the top left and changing from “Object Mode” to “Pose Mode”.
- The bones should be named like how it was when we did it in studio. Select the “MAG” bone and go to the right side and click on "Bone Constraint Properties"
- Press "Add Bone Constraint"
- Press "Child Of"
- Set it’s target to the RIG and set its bone to the BASE of the weapon.
- Press “Set Inverse” to bring it back to where it originally was.
Now if you move the “MAIN” bone, it should also take the “MAG” bone with it too along with the thing that is the child of it. Repeat the steps for the “SLIDER” bone also:
- Select the rigs, aka the bones that are there.
- Go into “Pose Mode” by going to the top left and changing from “Object Mode” to “Pose Mode”.
- The bones should be named like how it was when we did it in studio. Select the “SLIDER” bone and go to the right side and click on "Bone Constraint Properties"
- Press "Add Bone Constraint"
- Press "Child Of"
- Set it’s target to the RIG and set its bone to the BASE of the weapon.
- Press “Set Inverse” to bring it back to where it originally was.
If you did it correctly, the “MAIN” bone should now move both the “MAG” and “SLIDER” with it also.
Connecting The Weapon Together
Do the same with: "SLIDER"
Next up, we will need to connect the RIGHT ARM to the gun as well. If your gun will be located on the left arm, connect the gun with the left arm. If it’s a dual weapon, connect them accordingly.
Firstly, move your weapon to where you want it to be. Pressing “G” would allow you to move it around. Pressing “G” with “x, y, or z” would move it in that axis.
Moving Gun Model
In order to connect the arm to the weapon:
- Go into “Pose Mode”.
- Select the “RIGHT ARM” bone.
- Go to the right side and click on "Bone Constraint Properties"
- Press "Add Bone Constraint"
- Press "Child Of"
- Set it’s target to the RIG and set its bone to the BASE of the weapon.
- Press “Set Inverse” to bring it back to where it originally was.
Connecting Arm to Gun
When you rotate the “BASE” bone, it should also take the “RIGHT ARM” with it also. That’s really it for rigging up the bones and gun. Next up is the camera, this is so you can see how it would look like when you’re animating.
To add a camera to the thing, do the following:
- Get out of "Pose Mode"
- Press SHIFT + A and add in a "Camera"
- Go to the sidebar and change its rotation to 0,0,0.
- Press R + X to rotate it on the X-axis and type in 90. This will rotate it 90 degrees on the X-axis.
- Press G + Z to move it on the Z-axis upward. Position it on the “Camera” bone.
- These next part are completely optional but I like to connect the camera to the Camera bone itself. Selecting the camera and putting a “Child Of” constraint on it and parenting it to the “Camera” bone will cause it to move when I rotate the “Camera” bone.
Positioning Camera 1 of 2
Positioning Camera 2 of 2
Now that we got that, you can press Numpad 0 to go into the camera. If your keyboard doesn’t have a numpad, go on top and press:
View > Cameras > Active Camera
No Numpad Solution
One last thing, select the “Camera” and go into the “Camera Setting” on the right side at the bottom. Change “Lens Unit” to “Field of View” and change “Field of View” to a value to where it can show your animation’s arm.
Camera Viewport
So, now that we got that, you can finally start animating. If you don’t know how to animate in blender, I’ll teach you the basics.
▬▬▬▬▬▬▬▬▬▬▬▬BASIC BLENDER ANIMATION▬▬▬▬▬▬▬▬▬▬▬▬▬▬
If you already know how to animate, feel free to start animating it! I wish you best of luck.
Blender Animation Tips and Help
So firstly, blender automatically smooth out most of your keyframes. You can manipulate it though, there is a “Interpolation Mode” for you to play with.
Your animating layout may be different than mine but put it to where it fits your style. Make sure you’re in pose mode when you are animating this so that you can select the bones.
So, blender has auto key framing, which puts down a keyframe whenever you move a limb.
Auto Key-framing
Auto key-framing can speed up your workflow amazingly. If you can, add another window and put one for timeline and one for graph editing. Graph editing can allow you to smooth some parts down and interpolate it however you want.
Selecting multiple limbs will add keyframes on all of them. When animating, make sure to not only stay inside the camera view but rather exit it sometimes to rotate the things correctly and position them correctly.
To review your animation, press spacebar. Your best chance of having the perfect animation is to spend time on it and go frame by frame sometimes to check if something is out of place.
I really don’t know what else to tell you about the blender animation thing because it’s very straight forward. If you have any questions about it at all, let me know!
▬▬▬▬▬▬▬▬▬▬▬▬IMPORTING ANIMATION INTO ROBLOX▬▬▬▬▬▬▬▬▬▬▬▬▬▬
After you’ve gotten your animation down and you like it a lot, you may want to export it and import it into ROBLOX to see how it looks. I had problems with this where you have the data and insert it into a script but it won’t load, simply just make a new place and load in the rig again and import the animation again.
So in order to import your blender animation into ROBLOX, do the following:
- Go to the sidebar of BLENDER
- Select "Rbx Animation"
- Press “Export Animation”. This should give you some script data.
- Head back into ROBLOX STUDIO
- If the blender plugin is still open, press "Import Animation"
- Press CTRL + V (CMD + V for Macs). Your animation should now play.
Blender Animation Import to ROBLOX 1 of 2
Blender Animation Import to ROBLOX 2 of 2
In the blender plugin, there is a “Upload Animation to ROBLOX” option, it just saves your animation to the ROBLOX website.
Thank you so much for reading! I hope I was able to help you out because this honestly took me too long to understand.
If you want me to animate anything for you, here’s the link to my portfolio.
: [ PERMANENTLY CLOSED ] Aekume
Please look at the name to see if it’s open or not.
Was this helpful? If not, pleases let me know what I can add on! Or improve on! Thank you
- Yes
- No
0 voters
Until then, yours truly,
- aekume