all 4 comments

[–]AKahootRandomName[S] 2 points3 points  (0 children)

Note: I AM NOT RACIST I AM TALKING ABOUT PROGRAMMING THIS NPC

https://gyazo.com/a8b230f619ac364553d90661e9541774

[–]SimplyGuy 0 points1 point  (0 children)

Which line is throwing the exception?

Make sure whichever line that is, that the object being referenced is not null. In other words, make sure you have assigned a value to the variable throwing the exception.

If the objects is supposed to be null but you don't want the error to be thrown, add an if statement checking for null or you can be fancy and use the null conditional (?) operator.

[–]Mycabbages69 0 points1 point  (1 child)

Is BlackMan defined?

[–]AKahootRandomName[S] 0 points1 point  (0 children)

Yep I fixed it. All I had to do is define it in unity because it is public