Yep, you’re right again but it still doesn’t work. Now using Task.cont produces an error.
I’m guessing that when you load the Task class and not the module, you don’t have access to Task.cont any more, since it was part of the module. Is there a way to load both the module and the class? (perhaps with different names?)
If anyone else is running into the same trouble, you can pass globalClock.getFrameTime() as an argument (I called it time) to the task function and use
globalClock.getFrameTime()-time
instead of task.time