What's the best way to make stuff move?

I am not sure on what to use to make stuff move or spin. I know I can use Cframe , Tween , Lerp , Body movers and animation but I want to make something that is smooth and it doesn’t cause a lot of lag.

3 Likes

You can use TweenService for tweening the CFrame of it, I believe it doesn’t create too much lag.

1 Like

Tweening is pretty smooth, but can appear “laggy” if the tween is server sided and the client has bad wifi, if you plan to use that I recommend doing it on the client in a local script (unless it’s something important like a kill brick).

I’m not too sure if animations have the same problem (if you need reliable server-client consistency), but personally, I wouldn’t go through the hassle of rigging models just for that.

1 Like

I agree of what @INT_L and @WaterJamesPlough said. You could use TweenService to make a part move smoothly, but you could just do a different position for the part to move it. If you want to make it move ONLY for the client use a local script, but if you want to make it for everyone use server side script. It would make the game laggy though because the part is moving for everyone(If it’s REALLY big).

1 Like

I should also mention, it always depends on your use case. E.g. if you want to make a car chassis, body force movers would be much better because you can modify their properties instantly rather than waiting for a tween/animation to finish or constantly stop them, etc.

2 Likes

Lets say i wanna make a moving plane that players can ride like jailbreaks cargo plane what do i have to use?

1 Like

Tweening is the easiest and smoothest of them, but you’re gonna have to use multiple tweens if you don’t want to fly in a straight line the whole time.

1 Like