I had 2 IDs in and yet it's not playing the other one and sticking to one ID only.
local Chair = script.Parent local AnimationIsPlaying Assets = {4295096597,4292616679} for _, asset in ipairs(Assets) do game:GetService("ContentProvider"):Preload("http://www.roblox.com/asset/?id=" .. asset) end local newAnim = Instance.new('Animation') newAnim.AnimationId = "rbxassetid://" ..Assets[math.random(1,#Assets)] Chair.Changed:Connect(function(property) if property == 'Occupant' then local occupant = Chair.Occupant if not occupant then if AnimationIsPlaying then AnimationIsPlaying:Stop() return end end AnimationIsPlaying = occupant:LoadAnimation(newAnim) AnimationIsPlaying:Play() end end)
"Works fine for me, remember math.random is 100% luck, its rare, but you could still get the same sitting animation 50 times in a row." -Moo1210