Hey Developers,
I’m working on a Squid Game-inspired mingle game, and I’m running into an issue with a rotating cylinder/platform that’s meant to challenge players. I’m using a HingeConstraint to make the platform rotate, and players should be able to stand on it with some grip.
It works fine at first, but after some time (not always at the start, but randomly), it starts causing lag for every player in the game. The lag gets so bad that it’s unplayable.
The issue happens even when testing on an empty baseplate, so it doesn’t seem like anything else in the game is causing it. I’ve tried adjusting various HingeConstraint settings like MotorMaxTorque and AngularVelocity, but the lag keeps happening at random.
I’ve tried other methods like spinning the part on the server using CFrames, I’ve also tried doing it in the client. If I make it serverside every player starts being choppy except for the player on top of the part, but if its on the client then it’s inconsistent with some of the players being really fast and some being really slow.
Has anyone else experienced this or knows why this might be happening?
Thanks in advance for any help!
- MieHideyoshi
Expected behavior
Is there another way to make a smooth rotating platform for this type of game without running into lag issues?
I have attached a file for the spinning part, however a problem is that it sometimes works fine here and doesn’t, while in the base game it doesn’t work at all as it causes the lag
Spinning part.rbxl (63.4 KB)