local function A(A,J)return Vector3.new(J(A.X),J(A.Y),J(A.Z))end local function J(J,X)local o=J.Center local l=J.Rotation local P=(CFrame.new(o)*CFrame.Angles(l.X,l.Y,l.Z)):pointToObjectSpace(X)P=A(P,math.abs)return P end


local function InvokeVector(Vector, Function)
	return Vector3.new(Function(Vector.X), Function(Vector.Y), Function(Vector.Z))
end


local function GetOffset(Region, Position)
	local Center = Region.Center
	local Rotation = Region.Rotation
	
	local Offset = (CFrame.new(Center) * CFrame.Angles(Rotation.X, Rotation.Y, Rotation.Z)):pointToObjectSpace(Position)
	Offset = InvokeVector(Offset, math.abs)
	return Offset
end
