function angleBetweenPoints(N,H)local W=N-H return-math.atan2(W.z,W.x)end function getCameraAngle(N)local H,W=N.CoordinateFrame,N.Focus return angleBetweenPoints(H.p,W.p)end


function angleBetweenPoints(p0, p1)
	local p = p0 - p1
	return -math.atan2(p.z, p.x)
end

function getCameraAngle(camera)
	local cf, f = camera.CoordinateFrame, camera.Focus
	return angleBetweenPoints(cf.p, f.p)
end
