Any ways to prevent/soften ownership lag?

(Wasn’t sure if this would fit in Help and Feedback > Scripting Support or something)

Hello Devforum! My game is entirely physics-based. It uses a grab system focused on the client, and the server gives the client Network ownership of the grabbed object. This is so the object moves to the cursor smoother. When releasing the object, it fires another remote event and the server will take back ownership. This creates a teeny bit of lag on the object, which looks weird and affects physics slightly.

Demonstration below. You can see the object lags in the air for a moment as I release my mouse.


My discussion here today is how do I prevent this? Any way to soften the lag? This isn’t a big problem for me, but it’s visually unappealing.

you could make it so it changes ownership back to the server when it stops moving and if another player grabs it mid air it changes it to them

you are a GENIUS. how would you recommend i best detect when it stops moving? just monitor the velocity?

if the object is a model give it a primary part and use if PrimaryPart.Magnitude < 0.1 then

THIS WORKED!!! never thought the solution would be this simple, dont know how i didnt think of this. thank you so much! have a good day!