Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

When I try Animating My Gun, I can't find a rig, Am I Doing Something Wrong?

When I try To Animate My Gun, I use Motor 6D's and when I try to animate it, I can't find a rig. What Do I do? Any Tips?

I tried Using a humanoid for the lols, but when I try animate it, none of the parts move. (All My Parts are Unions)

Anyone Know How To helps me!? Thanks

3 comments

0

Did you try to animate human body while using the gun or did you try animating the gun like it's reloading etc. process?

0

Im not sure how to put the Gun And Human body together so I have been trying to Animate the gun itself

0

Plus if it helps, i will accept answer

1 answer

Animating non-player models is possible with humanoids, but that model have to have HumanoidRootPart. I believe your gun does not have a HumanoidRootPart, so delete humanoid, insert an AnimationController and try to play your animation by using it.

DO NOT FORGET TO DELETE HUMANOID INSIDE THE GUN

Here's an example code for reloading:

Anim = Char.Gun.Anims.ReloadGun
AC = Char.Gun.AnimController
AnimTrack = AC:LoadAnimation(Anim)
AnimTrack:Play()

Make sure you created the animation with same parts of the gun. Also, creating animation with parts which has same named parts may cause errors when playing it.

5 comments

0

Lol, sorry for my many typing mistakes, fixed them.

0

Umm.. IM stuck on how to instert anim controller xD

0

Sorry for late answering, but really you do not know that? How you can make a gun if you do not even know basics of studio? BTW you can insert objects from Model > Advanced Objects or you can use the code Instance.new("ObjectName",ParentOfObject), for you it is Instance.new("AnimationController",game.Workspace) and you can find your AnimController in workspace.

0

Okay. Thanks So Far. When I try And Move The parts of the gun ( Which has motor 6ds attached to handle) the parts do not move. What Do I do? Any Ideas?

0

And If Some Do Work, When I Play Animation, They Just stop working!?

This discussion is preserved as it was. New answers, comments, and votes are closed.