The script that’s been used for the seat is below:
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) --replace sitanim with whatever your animation is renamed to in the seat
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)
It seems to me that you do have the animation instance inside the seat part. From there, you might be able to get the Animation ID which I believe is what you’re looking for.
You used :LoadAnimation() therefore the parameter inside is an AnimationTrack instance. Through the explorer window, you are able to see the “sitanim” instance in the seat. Click on that and copy the animation ID.
Once you’ve found it, proceed like this:
game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(character)
character:WaitForChild("Animate").sit.SitAnim.AnimationId = [ The Animation ID you copied ]
end)
end)
Thank you to everyone who tried helping me! Someone has helped me figure out how to get the seat animation to show up and this post will now be closed.