You can write about your topic however you want, but you need to answer these questions:
What do you want to achieve? I was wanting to make a drone.
What is the issue? The issue is the camera glitching when it looks up or down.
What solutions have you tried so far? I attempted to find one but was never successful.
Video:
Code:
-- Here what it do.
local Direction = Camera.CFrame.Position + (Mouse.Hit.Position - Camera.CFrame.Position)
local BodyGyro = DronePart.BodyGyro
BodyGyro.CFrame = CFrame.lookAt(DronePart.CFrame.Position, Direction)
Any assistance you can provide would be greatly appreciated!
local Camera = workspace.CurrentCamera
local Mouse = Camera.CFrame.Position + (Camera.CFrame.LookVector * 100)
local DronePart = script.Parent.Parent
local Direction = Camera.CFrame.Position + (Mouse.Hit.Position - Camera.CFrame.Position)
local BodyGyro = DronePart.BodyGyro