--///////////////--
--Helping Methods--
--///////////////--


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
