local function s(s,m)local h=s.Size/2 local f=GetOffset(s,m)return f.X<h.X and(f.Y<h.Y and f.Z<h.Z)end local function m(s,m)local h=s.Size/2 local f=GetOffset(s,m)return f.X<h.X and f.Z<h.Z end


local function isInRegion(Region, Position)
	local Extents = Region.Size /2
	
	local Offset = GetOffset(Region, Position)
	return Offset.X < Extents.X and Offset.Y < Extents.Y and Offset.Z < Extents.Z
end

local function isInRegionIgnoreY(Region, Position)
	local Extents = Region.Size /2
	
	local Offset = GetOffset(Region, Position)
	return Offset.X < Extents.X and Offset.Z < Extents.Z
end
