local p=require(utilsModule)function p.GetAngleBetweenXZVectors(p,R)local A=lastUpCFrame p=A:VectorToObjectSpace(p)R=A:VectorToObjectSpace(R)return math.atan2(R.X*p.Z-R.Z*p.X,R.X*p.X+R.Z*p.Z)end


local Utils = require(utilsModule)

function Utils.GetAngleBetweenXZVectors(v1, v2)
	local upCFrame = lastUpCFrame -- this is kind of lame, but it works
	v1 = upCFrame:VectorToObjectSpace(v1)
	v2 = upCFrame:VectorToObjectSpace(v2)
	return math.atan2(v2.X*v1.Z-v2.Z*v1.X, v2.X*v1.X+v2.Z*v1.Z)
end
