local function u(u,r)return Vector3.new(r(u.X),r(u.Y),r(u.Z))end local function r(r,m)local S=r.Center local H=r.Rotation local P=(CFrame.new(S)*CFrame.Angles(H.X,H.Y,H.Z)):pointToObjectSpace(m)P=u(P,math.abs)return P end
--///////////////--
--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
