Animation script partly working?

Hi! I’m currently having trouble with an animation.

The animation is perfect when we made it, however when the animation runs, only 1 leg does the actual animation, not the other.

You can see in this image, the left leg does the animation, while the right one decides to go through the chair, and not follow the animation.

Our code is:

 seat = script.Parent
function added(child)
	if (child.className=="Weld") then
		local human = child.part1.Parent:FindFirstChild("Humanoid")
		if human ~= nil then
			anim = human:LoadAnimation(seat.sitanim)
			anim:Play()
		end
	 end
end
function removed(child2)
	if anim ~= nil then
		anim:Stop()
		anim:Remove()
	end
end
seat.ChildAdded:connect(added)
seat.ChildRemoved:connect(removed)

All help is appreciated

1 Like

I have a very simple way but you will have to export the animation again. You just need to delete unwanted parts when creating the animation will be okay.