I’m trying to make a simple punching animation and the problem I am having is that the legs get stuck when running the animation. They seem to somehow act up, freezing either in a default mode or some odd leg kicking out to the side mode even though I haven’t added any keyframes for the legs themselves. Can anyone see what I am doing wrong?
Punch with the legs being stuck:
Punch with the legs being stuck and also kicking out to the side:
The animation/keyframes:
This is the script inside my tool:
local Humanoid = nil
script.Parent.Activated:Connect(function()
local Animator = Instance.new("Animator")
Animator.Parent = Humanoid
local Ani = Animator:LoadAnimation(script.Parent.Punch)
Ani.Priority = Enum.AnimationPriority.Action
Ani:Play()
end)
script.Parent.Equipped:Connect(function()
Humanoid = script.Parent.Parent:FindFirstChild("Humanoid")
end)