Also, the units returned with entity:Distance(entity) is map units is it not?
If that is the case, 10 meters would be more closely 512 units.
or, you have the line:
if ply.gimp or not ULib.isSandbox() then return end -- Don't messWouldn't this return early since the gamemode he is running is DarkRP?