No sane person will help you with your problem when your code is formatted the way it is.
Please edit your post by formatting the pasted code snippet with ``` on both sides of each code snippet. You can click the </> button to make the text editor do it for you.
It should look like this:
func _ready():
# Formatted code snippet example
Look at @gertkeno’s post: Forum code formatting guide