Title explains it but I would like to go in some depth. I’ve some choices on how to handle planes but I know there is going to be a much better way to handle them.
Here’s what I thought of:
-
Framework for the plane, then handle the plane
-
Handing the physics on a local script then telling the server to replicate the changes made by the plane driver.
Once plane stuff is done, here’s what I thought of setting up the variables.
- Variables for the plane
- Dictionary for the algorithms
And here’s what I thought of handling plane physics
[Handling on a local script]
-
Handle physics on Stepped
-
Set network ownership to the player and clone the plane handler script to their PlayerScripts.
-
If player dies while in seat (with engine on), remove the control from the player and set the network ownership to the server.
-
Control UserInputService and use a function to handle speed.
-
If plane engine suddenly off, call a function that resets the plane’s speed and body velocity’s max force.
I need some good advice on what’s the best approach to handle planes. Thanks in advance!