: /Never try pointing out mistakes, it just gets people angry.
Umm, shouldn't the %datablock in if(isObject(%obj) && %obj.getDataBlock() $= "%datablock") not be in quotes?
also %clientgroup should just be clientgroupMistakes like those are very hard to pick up on imo, because they don't give a syntax error. It just makes the script do nothing, which is extremely frustrating sometimes.