Animation sometimes loads and sometimes doesnt

I have this script in a seat. It always loads for me. However, in game when i see others sit in the seat, sometimes it shows the correct animation, sometimes it shows none, and sometimes it shows a wierd variant of my animation. I have the animation priority set as Action. (I made it for R15 and i have my game set as R15, and my avatar is R15)

-- Variables
local PushSeat = script.Parent

-- Animation Variables
local Animation = PushSeat:WaitForChild("sitanim")
local AnimationTrack

	if PushSeat.Occupant then
		AnimationTrack = PushSeat.Occupant:LoadAnimation(Animation)

Is there any errors when it doesnt show any animations?

No, no errors show in output. I’m wondering if I have to set priority to Action in the script as well? even though it was uploaded that way.

How i normally load my animations/play them, is by doing:
Hopefully it can help out a bit, even tho the code is different.

local plr = game.Players.LocalPlayer
local Character = plr.Character or plr.CharacterAdded:Wait()
local Humanoid = Character:WaitForChild("Humanoid")

local Animation ="Animation")
Animation.AnimationId = ""
local Animator = Humanoid:FindFirstChildOfClass("Animator")
local AnimationTrack = Animator:LoadAnimation(Animation)

local Tool = script.Parent.Parent.Tool
local Debounce = false

	if not Debounce then
		if Animator then
			Debounce = true
			Debounce = false

I will test out the debounce and see if this helps… my guess is since it always loads correctly for me, and not others, then the debounce isn’t the issue, but I will try.

No it didn’t work for me… also your script was local, and I altered it for my server script.