-
What do you want to achieve?
I’m trying to create an equip animation for my pistol. -
What is the issue?
When I try to make animations on the humanoid, the motor6D for the gun doesn’t work. In my animation, I used the motor6D to rotate the gun. -
What solutions have you tried so far?
I am looking for solutions in the developer hub, but I don’t see anyone having the same problem. My theory is one of the inverse kinematics scripts I have is interfering with the animation (The inverse kinematics is for making the player’s character look up and down).
--Snippet of my code (this is on the server)
Tool.Equipped:Connect(function()
local character = Tool.Parent
local humanoid = character:FindFirstChildOfClass("Humanoid")
params.FilterDescendantsInstances = {character}
local RightHand: Part = character:WaitForChild("RightHand")
local ToolAttach: Motor6D = RightHand:WaitForChild("ToolAttach")
ToolAttach.Part1 = Handle
idleTrack = humanoid:LoadAnimation(Animations.idle)
idleTrack:AdjustSpeed(0)
idleTrack:Play()
attackDebounce = true
task.wait(equipCd)
attackDebounce = false
end)
This is what the animation is supposed to look like:
This is what the animation looks like in game:
Can someone help me find a solution for this? Thank you!!!