In my game I have a part that is constantly rotating. It’s not just a special effect it’s critical for gameplay. Right now, I am tweening the orientation on the server, but I’ve heard that it’s better for performance to tween on the client. However, I don’t want players to manipulate this orientiation and cheat. How can I make sure I have good performance in my system while also being secure? I’ve looked at other posts about tweening on the server va client, but I haven’t found any definitive answers for my situation.
Edit: All right, I’ve been struggling with this. I tried the hinge constraint, but it only works on one axis and I need it to work on every axis. The part that I want to rotate also needs to be suspended in the air and when the parts not anchored that isn’t possible. I tried using run service to constantly update the position, but that was very laggy for the client. I’ve used angular velocity, but that doesn’t keep the part in position. It starts moving like crazy. I’m not sure what to do.
You have to do it on the server and should only do things that are entirely visual on the client so that the roblox server doesn’t need to handle all of it.
Running a single Tween doesn’t impact the performance.