hello, i’ve recently come with a big problem in custom character movement replication,
i’m not sure if this is a bug or just how it’s supposed to work, but NPC movement doesn’t replicate very well on other clients when i use CFrame math on runservice.Stepped or runservice.Heartbeat (serverside)
here is some footage, first video is what the server sees (during test mode, studio)
red character is our guy
as you can see, it runs super smooth, no problems at all.
but when you look at the client side, how others see the same red character:
it replicates wrong, it has lag, it stutters sometimes, lags behind, in front… the problem is noticable only when modifying cframe serverside in stepped or heartbeat (renderstepped is not available on server)
is this a bug? am i doing something wrong?
this is a custom scripted NPC character not assigned to a player, but controlled by its inputs. in my game character auto loading is disabled and theres no default roblox character, all custom, treated like NPC’s
What solutions i have tried so far?
- changing stepped / heartbeat / wait() loop
- setting network owner of every part ( and only root) to nil (server)
- removing everything other than CFrame modifications from the loop, concluding that the problem comes from that.