Error: Cannot read property '0' of undefined on line 58114 in script "update"

I’m using Wick Editor 1.19.3 and I came upon this strange error. The code seems to be fine but I can’t understand why the error message keeps popping up. I didn’t even have a line 58114 anywhere in my script. Another thing that happens is the player moves on it’s own sometimes. A solution to any of these problems would be appreciated. My Project2-1-2021_17-08-37.wick (1.4 MB)
Thanks,
MakerMan

Edit: I figured it out. Thanks!