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

PushSeat:GetPropertyChangedSignal("Occupant"):Connect(function()
	if PushSeat.Occupant then
		AnimationTrack = PushSeat.Occupant:LoadAnimation(Animation)
		AnimationTrack:Play()
	else
		AnimationTrack:Stop()
	end
end)

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 = Instance.new("Animation")
Animation.AnimationId = "http://www.roblox.com/asset/?id=9230552052"
local Animator = Humanoid:FindFirstChildOfClass("Animator")
local AnimationTrack = Animator:LoadAnimation(Animation)

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

Tool.Activated:Connect(function()
	if not Debounce then
		if Animator then
			AnimationTrack:Play()
			Debounce = true
			AnimationTrack.Stopped:Wait()
			Debounce = false
		end
	end
end)```

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.