Hello, I have a problem with the ship I'm scripting.
Basically, when the player holds "W" or "S" a value called "Velocity" changes, and the speed of the ship will be:
Body.BodyVelocity.Velocity = Body.CFrame.lookVector * velocity.Value
My problem is that sometimes, when I turn the ship and then stop turning, my ship doesn't go exactly forward(sometimes the force is something like 45° from the front!).
I don't know what's wrong, I tried changing the BodyVelocity when the ship stopped turning, I also tried changing the BodyVelocity with a while true loop every 0.5 secs(just to test), but still, the ship doesn't go always forward after I turn.
What am I doing wrong? |