Animated Seats part 2

Hello everyone, in my last thread I was wondering how to make animated seats. It ended up working in the studio but when I ran the game on ROBLOX it didn’t work. I looped the animation and I set the animation priority to action. Heres the script local sitAnim = 4841260780

‘’'local seat = script.Parent
local playingAnim

local newAnim = Instance.new(‘Animation’)
newAnim.AnimationId = ‘rbxassetid://’…sitAnim

seat.Changed:Connect(function(property)
if property == ‘Occupant’ then
local occupant = seat.Occupant
if not occupant then if playingAnim then playingAnim:Stop() return end end
playingAnim = occupant:LoadAnimation(newAnim)
playingAnim:Play()
end
end)
–solution’‘’

can you please explain to me how I can fix this in simple terms? Anyone?

Well first off I’d probably use a code block in your post so its a bit more readable and also to follow the rules better. But what I would do is just edit the sitting animation inside of the default animation script.

The thing is I want different animations for each seat I dont really want every seat to be the same and I don’t know how to use a code block

Use 3 ` in a row to make a code block, and if you need multiple animations I’m not sure I never really messed with seats but try stopping the default animation before playing the custom one.