We have been trying to resolve this with no luck for a while. 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.
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)
There is no internal reports regarding animations or network ownership so i do believe this is your script & not roblox, matter of fact i have the same system as you for a car game and i do not face this issue.
Dev Relation are not roblox engineers they may have redirected you to whats best without knowing.
You’re running the animation code on the server, you need to ensure that the changes you make are properly replicated to the clients
The issue is that seats normally auto replicate the animations from the server to all clients, as seen when you are sitting in seat placed on the server.
When the seat is owned by another network owner it doesnt replicate over, and its only on the train cars (separate assemblies attached via constraints). If the owner is physically on the same body the animations play just fine.
Theres no internal report yet, this is why im following up lol
A ticket has been filed into our internal database and an engineer is assigned to it! I asked him for updates and will come back here as soon as I have them!
Hi, still no update on this. For the record, we have also tried to force fire the animation event to all clients and the same result occurs. No animations play.
My theory is because we have sub assemblies (the bogies are on hinge constraints), it does not create proper network ownership. I believe this is a train-specific issue and how the cars are set up in a set. It seems to be using sub-assemblies connected via rod constraints that breaks ownership for other players that are not on sitting on the same assembly.
This is a similar issue we are experiencing, except we are talking about real players sitting animations, and not NPC’s.