(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
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:
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.
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.