Flying system a bit glitchy

Hey, I’m working on a game.
And the current flying system I made is a little glitchy with how it works.
I do believe it’s because of the system I’m using?

Any ideas to fix it up a bit?

A massive issue found can be seen in this video, after flying for a bit it starts to not go the direction the space ship is actually pointing:

Thanks in advanced!

	
	local Speed = 10 -- norm 50
	local Weight = workspace.Gravity*ss:GetMass() -- ss in our plane
	local Aimer = ss:WaitForChild("Aimer") -- pretty poor method, I have a attachment in there w/ alignposition to make it move to where the aimer is aiming

	ss.AlignPosition.Enabled = true


	local BodyForce = ss.VectorForce
	BodyForce.Force = Vector3.new(0,Weight,0)

	while true do

		local Target = mouse.Hit
		mouse.TargetFilter = workspace





		Aimer.CFrame = Target


		ss.CFrame = CFrame.new(ss.Position, Aimer.Position)


		ss.AlignPosition.MaxVelocity = Speed

		task.wait()

	end
1 Like