Interesting error, "Expected <eof>, got 'return'"

INTRO

Well, I was going to make a death camera module, you know, for games and stuff. This was supposed to be an easy task. A EASY TASK.

THE WEIRD ERROR

I have attached a video for you people to see,

As you can see, in the first few seconds, I outline with my cursor the line number the error is occuring on.

Problem?

IT IS A NONEXISTENT LINE.

ENDING

Yeah, I am totally dumbfounded on this issue, I just need some new help.

Not sure if this’ll do anything, but if you close the script editor then test do you still get the non-existent line?

My guess is your code somehow didn’t update.

3 Likes

Dude.

I did that right? Heres what happened for some ODD reason…

Heh, that’s quite odd…

-30chars-

You are returning twice, that’s what I’m guessing. You should only use 1 return.

The situation has been resolved, and I know that, the whole thing is that the 2nd return was hidden in the script editor, for whatever reason.

I too also have this same issue except when you go to test it literally creates another return.