var lines = search_line(player.getBlockOn()**.toVector()**.toBlockPoint(), isLeft, distance); which in line 145 make the command error I don't know why 
var lines = search_line(player.getBlockOn().toVector().toBlockPoint(), isLeft, distance);

which in line 145 make the command error
I don't know why