Animations not running with other network owner

Hello this might be a bug but I’m wondering why animations are acting weird/not running.

This is for a train with a driver who is always the network owner. I have proximity prompts that run a animation when you sit. This is done on the server so I assumed it should run all the time and everyone should be able to see it.

Here is a example in a test world:

Animation Bug.rbxl (55.0 KB)

This is part of the script that plays the animation

seat:GetPropertyChangedSignal("Occupant"):Connect(function()
    local animatior = seat.Occupant and seat.Occupant:FindFirstChild("Animator")

    if animatior then 
    	AnimTrack = animatior:LoadAnimation(script.SittingAnimation)
    	AnimTrack.Looped = true
    	AnimTrack.Priority = Enum.AnimationPriority.Idle
    	AnimTrack:Play()
    	print("Playing Animation")
    elseif AnimTrack then
    	AnimTrack:Stop()
    	AnimTrack:Remove()
    	print("Stoped Playing Animation")
    end
end)
1 Like

You should play animations on players from their client. It can cause weird behavior from my experience if you don’t.

1 Like

Were you able to solve that problem? I’m facing a similar issue with the doors of my train :frowning:

1 Like