Hey everyone,
I’ve been having a standstill with serious lag issues in my Roblox hockey game when there are multiple players in the server. Here’s how it works: players hold a power bar that goes up, and the higher it is when they release, the more power the shot has. When they hit the puck, a BodyForce is applied based on that power, and the puck moves realistically into the direction it was hit.
The problem is during actual gameplay, especially when two players pinch the puck together. (The script isn’t constantly firing when this happens, so that isn’t the issue) Also the BodyForce is destroyed after a certain amount of time or if a player hits the puck again before a new BodyForce is made. Something with BodyForces causes the puck to slide, teleport back, and then slide again, sever lag, and even freezes the puck. It makes the game super inconsistent and frustrating. It works perfectly fine when you are alone in a server, which can only be practice mode when alone.
I’ve tried many different ways of changing network ownership and even experimented with an invisible real puck and a local one that players see (which tweens to the real puck’s position). Both had the same issues.
I’m also open to alternatives that don’t use BodyForces and I’m curious how other real-time precision physics Roblox sports games handle this. Any suggestions or solutions?
Thanks!