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?