function angleBetweenPoints(y,q)local g=y-q return-math.atan2(g.z,g.x)end function getCameraAngle(y)local q,g=y.CoordinateFrame,y.Focus return angleBetweenPoints(q.p,g.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
