Indentation is an important part of GDScript, I’d recommend learning more about the basic syntax.
Currently your post is illegible as a program because it lacks indentation, which is necessary to understand your error too.
Make sure to paste your code inside of a code block