Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 7 years ago

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

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? superalp1111 662 — 7y
0
Im not sure how to put the Gun And Human body together so I have been trying to Animate the gun itself tonyv537 95 — 7y
0
Plus if it helps, i will accept answer tonyv537 95 — 7y

1 answer

Log in to vote
0
Answered by 7 years ago
Edited 7 years ago

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.

0
Lol, sorry for my many typing mistakes, fixed them. superalp1111 662 — 7y
0
Umm.. IM stuck on how to instert anim controller xD tonyv537 95 — 7y
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. superalp1111 662 — 7y
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? tonyv537 95 — 7y
0
And If Some Do Work, When I Play Animation, They Just stop working!? tonyv537 95 — 7y
Ad

Answer this question