Please read the FAQ and learn how to properly format your code, so it is a) readable and looks like it should (in the preview pane and after you post it).
[edit] Works fine for me ONCE I add a space before the “then” in:
if self:isReady("cleave")then
If you retyped your code to get it in the post, then DON’T you must copy and paste otherwise, you may add/remove errors.
If you did copy and paste then you DIDN’T MENTION the error you were getting, and that is not nice. In that case you are being rude to us, by not giving all the info.
The error I get
Tells that it thinks there is an error on that line (usually, the error is on that or a previous line).