yeah, okay that looks good.
I'm having a problem with self being nil the first time onupdate gets called.... but I see you have 'self' right there... hmmm.
Code:
function GUI.IControl:onupdate()
self.updateCount = (self.updateCount + 1) % self.updateRate --line 142
if self.updateCount == 0 then
Class - IControl.lua:142: attempt to index a nil value (local 'self')