i have an open wagon truck in roblox studio which players can stand up freely while the wagon is driven. I want players to be able to move freely on the wagon while it moves. The players do stay on the wagon while moving but on other players’ screens, they look like they slide off the car when moving and then slide back on when it stops. Is this a network ownership issue? I noticed this effect also happens with the jailbreak trains, however, it does not seem to happen in dead rails.
Yeah, that’s a network ownership issue. What’s happening is, the player looks fine on their own screen, but for everyone else, it looks like they’re sliding around because the physics aren’t syncing right. The wagon is probably owned by the driver’s client, but the other players’ characters are being simulated on their own clients — so stuff doesn’t line up when the wagon moves.
You’ll notice the same thing in Jailbreak trains, because they move fast and use client-side physics too. Dead Rails probably fixes this by either anchoring players to the train temporarily or using server-side movement.
If you want to fix it, try setting the wagon’s parts to be server-owned using SetNetworkOwner(nil)
. That usually makes it more consistent across clients. Or if you want to get fancy, you could track where the player is on the wagon and manually update their position relative to it, like Dead Rails probably does.
i tried setting network ownership already, it doesn’t work. In this example file, players do not slide. I am using the same network ownership script and I also tried other methods. none seem to work as intended.
Dead Rails Train System (3).rbxl (160.6 KB)
xXTheRealCamelXx’s response is very misleading.
This is an issue involving network & physics, however, implementations were made by @Roblox to fix issues like these. Previously, developers (including myself) had to make our own manipulators to simulate more realistic physics, mostly inheriting velocity (like when you jump, you move with whatever platform you’re on).
Check out the controllers, GroundController and AirController.