What is the CFrame equivalent of "LookVector"?
Please provide more explanation in your question. If you explain exactly what you are trying to accomplish, it will be much easier to answer your question correctly.
Im making my own fly script, and I've inserted a bodygyro to point the angle of the character to the camera.
01 | local running = game:GetService( "RunService" ).RenderStepped:Connect( function () |
03 | local Bodyposition = Instance.new( "BodyPosition" , Character.HumanoidRootPart) |
04 | local BodyGyro = Instance.new( "BodyGyro" , Character.HumanoidRootPart) |
06 | Bodyposition.MaxForce = Vector 3. new( 40000000 , 40000000 , 40000000 ) |
07 | Bodyposition.Position = Character.HumanoidRootPart.Position + Vector 3. new( 0 , 5 , 0 ) |
08 | BodyGyro.MaxTorque = Vector 3. new( 40000000 , 40000000 , 40000000 ) |
09 | BodyGyro.CFrame = Character.HumanoidRootPart.CFrame * CFrame.Angles( 0 , math.rad(workspace.CurrentCamera.CFrame.LookVector), 0 ) |