function lookAt(l,G)local M=(G-l).Unit local C=Vector3.new(0,1,0)local s=M:Cross(C)local k=s:Cross(M)return CFrame.fromMatrix(l,s,k)end


function lookAt(eye, target)
	local forwardVector = (target - eye).Unit
	local upVector = Vector3.new(0, 1, 0)
	-- You have to remember the right hand rule or google search to get this right
	local rightVector = forwardVector:Cross(upVector)
	local upVector2 = rightVector:Cross(forwardVector)

	return CFrame.fromMatrix(eye, rightVector, upVector2)
end


