I have a seat animation and it works, but the legs won’t do the animation. The leg’s animation is default. How do I fix this?
Script:
seat = script.Parent
function added(child)
if (child.className=="Weld") then
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)
Animations have something called a priority which basically define which animation plays if multiple animations are trying to play at the same time. It can be changed from the animation editor.
there is no need to change the priority or do anything like that. Plus it is kinda confusing…
All you have to do it click on the legs of your character while animating and just rotate them a little forward and then back then you shall see on the bottom left of your animation window that both of the legs should have a little mark next to them! now when you play the animation your legs shall stay how you want them to be!