I have created a scripted vehicle chassis that uses VectorForces and raycasting for my game that has been working a treat until now.
When the car has no-one driving, the server takes ownership of the vehicle and updates the suspension, but i have realised that this has a fairly large performance hit on the server. I would go from 100ms ping when there is a driver to 800-1500ms ping when the car has no driver and the server script has taken ownership.
I was thinking about a sort of faked suspension which would use a BodyPosition and BodyAngularVelocity (like the jeep in one of the starter roblox places you can get) which keeps the vehicle in one place, but the big problem with this is it doesn’t handle well over hills/ramps. If you were to drive to a ramp or hill and then exit the vehicle, the vehicle would sort of hit the ramp and bounce backwards which is not ideal at all. This game i’m making will include players bailing out of their vehicle while driving as part of gameplay, so this is quite important.
Another solution is going purely with roblox constraints, but im not sure how reliable this can be. Ive had problems in the past with wheels glitching or disappearing etc.
Is there any better solution to this problem? any help is much appreciated