CFraming vs Tweening vs Physics for a train

Hi,
I don’t have an issue today. I just wanted to ask what tactic would be better for a train, using physics (VectorForce), CFraming, or Tweening the body of the train. In my case, the train needs to be controllable which I can think of ways to do in all of those circumstances. Though, physics has its problems such as derailing, shaky tracks.

Which one of these would you recommend to use? Why? What are its pros/cons?

Thanks,
pevdn

1 Like

I’d say physics is the worst one, as it can be buggy sometimes, as well exploiters are able to manipulate physics (If they have network ownership of the train of course). If you are looking for smooth and accurate movement I’d recommend doing synced tweens on client.

3 Likes

I agree wit @FP_Nation , if its something that follows a track, such as a train, or mine cart or roller coaster, you really don’t need physics, unless you WANT the ability for it to derail.

However, just know that if you tween the cframe, or manipulate it by cframe in any way, you will loose collision.

3 Likes