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

Unable to make Gun Animations play?

Asked by 4 years ago

I've recently been trying to make a gun model use my own animations, but I can't seem to do it. No matter what tutorials i follow, none work.

Every time i equip the tool, the weapon does not play my animation, but instead shows as it would on my "Animation Dummy", not in the correct position, with the bolt and magazine separated from the main body. (I separated the bolt and magazine in order to create my animations in the animation editor, and are correctly in position if the animation plays).

local animationHold = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(script.Parent.Holding)

And for anyone wondering how my gun is welded, i used a weld plugin, then, to animate the Magazine and Bolt, i removed the weld from the two parts and placed "Motor6D" files into the handle of the gun named "Mag" and "Bolt" (The name of the parts).

Any help would be greatly appreciated, as this has been pretty frustrating.

0
Make sure the Animation is set as an "Action". Spjureeedd 385 — 4y

1 answer

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

I guess you forgot to add motor6D to your character, without motor6D the animations will not work.

Like you put the motor6D to your right arm of your character and you set the Part0 to your right arm of your character and you set the Part1 to your Handle of your weapon. You don't need to weld the handle to your right arm of your character because the animation of your handle will not work.

Remember motor6D is already have weld when you set the Part0 and Part1 in the specific object.

0
I appreciate the answer, but I'm not entirely sure on what you mean by "Character", is this referring to my animation dummy? Or the local player? Wackleberry22 0 — 4y
0
Sorry for late reply. I was talking about of local player not the NPC. TankArgie_DEV 0 — 4y
Ad

Answer this question