Gun System help needed

(This is a repost from a post I made yesterday that got like 3 views)
I am making a gun system and it is working fine but I do not know how to make the hands holding the gun as shown in the image below on the right-ish bottom


I have tried to use viewportframes but the quality is just so bad and I don’t know how to animate it.

Any help is appreciated

Don’t use viewport frames for that,
Have a humanoid with an R6 set and R6 rig that only consists of the left and right arm and humanoid root part.
Make sure that they both are rigged using Motor6D to the HumanoidRootPart.

Done, all that’s left to do is make them non-collidable with the player and attached to the camera.
For animations, you can use my tutorial:

Edit: please do not create multiple posts

I dont fully understand, is it suppose to be something like this but make the arms invisible to other players?

Yes.
It simply follows your camera

How do I rig them? Do I put motor6d on each arm connected to the player’s humanoidrootpart or the new humanoidrootpart?

Part0 as HumanoidRootPart and Hands as Part1


I don’t understand. Which humanoidrootpart do I connect the arms too?

You should connect the arms Motor6D to the HumanoidRootPart parented to the arm model.

Then how would the arms be connected to the player and seen?

Use a LocalScript to set the viewmodel HumanoidRootParts CFrame to the camera CFrame once every frame.

It’s working now but the arms are treated like they have cancollide true even tho everything is cancollide false?

Try using collision groups. have the players character as a “Player” collision group, and the viewmodel as a “Viewmodel” collision group. Models with humanoids typically ignore CanCollide so collision groups is the only solution.

I know I am asking a lot of questions but how do you use collision groups and where is the editor? (I’ve never used these before and a tutorial says there is an editor but it isn’t explaining anything else really)

Totally fine! Asking questions is a good thing, not a bad thing.

I don’t know where to find the collision group on the next-gen studio preview, so to access it I have created a new tool in a new tab.

I believe that on the older studio UI it is located in the “model” tab.

Once you have found the editor create the two groups (Player and Viewmodel) and set them so that they cannot collide with eachother. Once they are both created and configured to your preferences, use a script to set every instance parented to the character to the “Player” group. Repeat the process with the viewmodel but this time set every instance to the “Viewmodel” group.


I removed humanoid and it is working fine but it has no animations, do you know how to add animation to it like if a person goes one direction it kinda sways or something? (I can make animations for when you fire the gun and that sorta stuff I just don’t know how to make sway, is this something that is really hard to do or very easy?)

You should keep the humanoid, models cant play animations without a humanoid. To disable the collision, use collision groups and do not remove the humanoid.

Alright I will do that. Do you know how to do the sway though?

The AnimationController:

Although if you want the arms to work with layered clothing (and by default have the meshes for the R6 rig) then yes you need a humanoid.

CFrames. Lots of CFrame and Vector math.

You don’t need humanoid for layered clothing, and you can get 2D clothing working without humanoid. The problem is the texture filtering Roblox applies to low-res textures, so you kind of have to use humanoid. Humanoid upscales 2D clothing to avoid filtering, so it cannot be done by you, unfortunately, even with EditableImage, can’t due to asset restrictions.

The easiest way to create sway (to my knowledge) is to get the mouse delta using UserInputService, and offset the viewmodels CFrame according to the mouse delta.