What are you attempting to achieve? (Keep it simple and clear)
I am attempting to achieve something like this (I know one is punping a shotgun and one is the hammer going backwards) https://gyazo.com/2f39612b255b9a9123f6bb7af49ab2cb
What is the issue? (Keep it simple and clear - Include screenshots/videos/GIFs if possible)
I have no idea how to do it.
What solutions have you tried so far? (Have you searched for solutions through the Roblox Wiki yet?)
I have looked at these: How to animate a tool/object with a Dummy in the Animation Editor
Problem with the tutorial above: First of all it doesnât show how to animate parts of the gun. Second, it doesnât show how to do it with a mesh or with a tool.
So from what I know now, I need to use motor6Ds and rig the gun. But I know neither of those things.
TL:DR
Could you show me how to rig the gun properly with the gun setup that I have, or at least how to rig with a tool. (If not possible another way) And how to then animate the gun, and if possible in the same animation as the character animation. Thank you so much!
Yes, I know I asked something a little similar but I formulated it wrong and people got the question wrong. Please donât flag my post.
If you didnt see how the hammer went back here is how it looks in real life: click here
If you are following my tutorial that you linked, there is a very easy way to animate other parts of the gun, such as the Magazine or the Hammer or whatever it is.
Iâm assuming you have rigged the gun up so that you can begin animating it. Letâs say we want to be able to animate the magazine:
Create a Motor6D in the Handle of the gun and call it âMagâ
Set the Part0 of the âMagâ Motor6D to the Handle
Set the Part1 to the gunâs Magazine
If you re-open the animation editor on the rig you should see âMagâ listed as something you can animate as part of the rig.
On a side note, this is the incorrect category for this post as there is no scripting involved here, please move this to the appropriate category (Design Support).
I just have a question, I opened the âgameâ where you did your tutorial, I saw that the gun you were animating was not a tool but just a model with a handle inside. How would I rig the tool? (See picture)
You would proceed the same way you would with a normal model. Be aware that only local models should be animated to this level, while server models should be limited to aiming. Roblox is pretty strict on RemoteEvent/Function limits.
The model is still just a model, no matter what way you use it. A Tool is just an object to ease input control and character appearance change.
You donât rig the tool. When you animate the model you can use that Animation with a tool. You create Motor6Dâs identical to the ones at the time of animating it, so when the player equips the tool the animation will work with it. You have to make sure though that the Motor6Dâs in the tool are named the same as the ones in the model.
How would I use that animation inside the tool? Do I need to add some sort of animation controler (not sure what it is, just heard about it) or how would I go about doing that?
So if I want to use that for any other part of the gun I just change the Part1 to whatever I am animating?
And then when I have animated everything I can basically use that one animation and it will play on both the gun and the character?
But I will need to Motor6D the same place as when I rigged it?
Also correct. If you want to animate the Mag, and the Hammer for example, you would have two Motor6Dâs inside the Handle of the gun. The âMagâ Motor6D should have itâs Part0 as the Handle of the gun Part1 as the Magazine of the gun. The âHammerâ Motor6D should have itâs Part0 as the Handle of the gun and the Part1 as the Hammer of the gun.
So everything worked except that I couldnt move the hammer.
I could move the main Handle, but not the hammer. It just wouldnt move!
All the parts in the gun are CanCollide = false and Anchored = false and collisions are turned off.
Here are some pictures and GIFs:
You could always just make a handle, set the transparency on it to 1, then add the hammer the the handle mesh which will be fake to the real handle which will allow you to animate them seperate.
Edit: Nvm, its probably because youâre using a weld instead of a motor6d.
Hey, I animated the thing and everything worked. But when I tried to impement it into my weapon only the arms moved and not the hammer (top part)
Why? (I took the Motor6D the same place!) https://gyazo.com/3d47c1fc4ac3e5941e3dd1df28931722