Enemy might not exist. use if enemy before checking distance.
but I did it already)) look at my code
I think what SuperSmacker is saying is try defining the variable, distance, after/inside the “if enemy” conditional statement. Then it won’t return null.
it turned out that I had weak glasses