Currently my flight system has a literal linear format to it. Straight from A - B; However, I’m looking to adjust it to include a form of tilting as shown below; the top video is what I wish to achieve. The following one is my own and the code provided.
https://i.gyazo.com/988f83ea48a94ecdf601c8b303043983.mp4
https://i.gyazo.com/4f378b8da7f59a0c7700d4a7c14e0485.mp4
function Flight()
while true do wait()
if System["isPlane"]["PilotSeat"].Occupant ~= nil then
if isActive.Value == true then
BodyMovers["BodyVelocity"].Velocity = System["isPlane"]["Base"].CFrame.LookVector * Throttle
BodyMovers["BodyGyro"].CFrame = CFrame.new(System["isPlane"]["Base"].CFrame.p, isPilot:GetMouse().Hit.p)
if Throttle < MaxThrottle / 2 then
BodyMovers["BodyGyro"].MaxTorque = Vector3.new(0, math.huge, 0)
BodyMovers["BodyVelocity"].MaxForce = Vector3.new(75000, 0, 75000)
else
BodyMovers["BodyGyro"].MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
BodyMovers["BodyVelocity"].MaxForce = Vector3.new(75000, 75000, 75000)
end
else
Throttle = 0
BodyMovers["BodyVelocity"].Velocity = Vector3.new(0, 0, 0) BodyMovers["BodyVelocity"].MaxForce = Vector3.new(0, 0, 0)
BodyMovers["BodyGyro"].CFrame = isPlane["Base"].CFrame BodyMovers["BodyGyro"].MaxTorque = Vector3.new(0, 0, 0)
end
else
isActive.Value = false
Default(true)
break
end
end
end