Help me with Error

It is not a script. It is an indicator. To get rid of that compilation error, move the return statement above line #64. Return statement should return values from functions, not from some random places in your code.