basically i've made some custom animations for when you sit on a certain chair, but the problem is that the animations either don't load the first try you sit on the chair, or the animations mix up.

note: all chairs run the same script but with different ids

local Players = game:GetService("Players")
local SitAnimId = x -- x being the animation id

Players.PlayerAdded:Connect(function(Player)
	Player.CharacterAdded:Connect(function(Character)
		local Animation = Character:FindFirstChild("SitAnim", true)
		Animation.AnimationId = ('rbxassetid://x'):format(SitAnimId) --x is the animation id
end)
	end)

thanks