khas awesome light effect script error

im getting this error and have no idea why.

script ' khas awesome light effects' line 866: range error occurred. float 7.036874418e+14 out of range of integer

it seems to happen when im using my dagger when attacking.
heres a better version of the error

Image

I don't no much about scripts not sure what I need to change

Image
I think I might of fixed this issue I ended up deleting and redoing my rat enemy.
the script crash has not occurred since I have done this.

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=78067