IK Viewmodel. Help needed

Hello Everyone. You’ve most likely seen the new trending game on Roblox called “Gun Fight Arena”

Well I did some research and I THINK (Not sure, just think) that the game uses inverse kinematics to attach the viewmodel arms to the gun. So basically they both follow the camera and the arms get attached to the viewmodel. Well I have 2 problems.

  1. They somehow make it work for every singe avatar on r15 ( I think they use the humanoid root part to position the gun but I’m not sure.)

  2. Anyway the second problem is the actual animations. I made it so the IK Arms stick to the player’s right hand and left hand, but I’m wondering if there is another more accurate way to do it since other characters such as the one my avatar is using, bugs the arm positioning. The only solution I have is to restrict the game to blocky avatars only tho It’s not cool that way.

So please if anyone has any idea on how they do it, please respond. Even the slightest “hint” will do!
Thanks for reading this and have a nice day.

Also here is a clip on how it looks currently with blocky avatars only
robloxapp-20240804-1516417.wmv (1.2 MB)
And here is with other avatars such as mine
robloxapp-20240804-1518327.wmv (1.4 MB)

I can give a side view of the viewmodel if needed!

–Quick update. I found out that using humanoidRootPart for animations is not rlly a great option.

Restricting to blocky might be a good idea honestly. If nothing else can work I would do it. It’s really up to you though. I don’t know any other solution

Maybe for 1. I position the gun at the humanoidRootPart, and then set the C0 value of the m6d connecting the player and the gun to that position

Take for example the game criminality; I play it and have first hand experience of what you are trying to accomplish. They simply made it so that whatever package/bundle you have equipped, shows up as normal in third person, but whenever you go in first person it’s blocky. It’s a viable approach.

Oh. Well I never though of that lol. Thank you so much. I don’t actually know how i didn’t think of that since i’ve alreayd made a system similar to that, that disables the viewmodel when you go in third person. Thanks a lot :slight_smile:

1 Like