You can’t have a bare, top-level function call (like your error line). I’m not sure what you’re trying to do there exactly, but that function needs to be called from within another function. So, for example, you could make that call from _ready()…
It’s because your trying to run a function where there isn’t supposed to be one
you can write functions like this
func _ready():
print(function_to_call()) #will print the return value of funtion_to_call()
function_to_call() #will not work because you can't just call a function it # needs to be called from within another function
func function_to_call():
var value = 2/3
return value