How can I rotate a object around its LookVector?

Hello!

  1. What do you want to achieve? I want to create the ability to tilt an airplane up by rotating it around its LookVector (since negative RightVector is the front of the airplane)

  2. What is the issue? I do not know how to do it.

  3. What solutions have you tried so far? I tried using CFrame:ToWorldSpace but that just makes the plane have a seizure.

If any info is needed then I will send it.

Thanks!

1 Like

local pivot = model:GetPivot()
model:PivotTo(pivot * CFrame.fromAxisAngle(pivot.LookVector, rotateAmount))

This code will rotate your plane model by roateAmount