Seat animation broken

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?

image

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)

Please help :frowning:

1 Like

Did you add an animation on the seat?

yes i did

image

It’s possible that the animation’s priority isn’t high enough and the default animation for sitting down overrides it.

2 Likes

uhm. … What does that mean???

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.

oh. My animation’s prioity is set to “Action”.

I’m not fluent at animations but is there like an “override” priority or “top” priority, something that would make sense to be the highest priority?

action is the highest priority.

1 Like

so, how would i change the default’s prioity? If i can change it.

I really have no idea how seats work. As far as I know, it’s impossible to animate legs while on a seat, but I’m not that experienced.

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!

5 Likes

Wow!!! Thank you sooo much!! <3

1 Like