Animations not replicating for different network owners

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.

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

@Focia19 hi, is there any way I could get an update on this?

This category is used to report ROBLOX bugs not script bugs + I don’t believe this is a ROBLOX engine bug

#help-and-feedback:scripting-support → is maybe what you’re looking for.

Thanks.

This report was approved by developer relations, so this does belong here.

Thanks

1 Like

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

1 Like

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

This is not a scripting issue.

1 Like

good luck with that but if it is not an engine bug 0 staffs will reply to you just saying

Hi @DanBuildsTrains

Sorry for not acknowledging this thread!

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!

Thank you!

1 Like

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.

1 Like

I talked with one of the developers in DMs and the issue has been identified, and resolved.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.