Is zonePlus broken?

I agree with @arbitiu , it really depends on how you use things. ZonePlus is likely running every frame when it likely does not need to. Also it is likely not using parallel processing if the server is lagging this much.

local function is_in_box(size, cframe)
	cframe = cframe:Inverse()
	size = size/2
	return function(pos)
		pos = cframe * pos
		return not ((pos.X >= size.X) or (pos.X <= -size.X)
			or	(pos.Y >= size.Y) or (pos.Y <= -size.Y)
			or (pos.Z >= size.Z) or (pos.Z <= -size.Z)
		);
	end
end

This is the code to check if a position is inside of a cframe and size.

1 Like