Trying to Access none error

Don’t know how to fix this problem, the code works in game but still puts these errors.

It’s saying that ‘target’ isn’t anything.

You might have a variable call target, but it’s not pointing at anything…

But what do I make target be something?

What is it supposed to be? I mean, what is the target?

I assume this bit doesn’t work?

It works ingame but puts all these errors still.