You need to indent it to be same level of indentation as the rest of the function.
Anything without indentation is in class body. That’s more for stuff like setting variables etc.
I just had a look at your code too and it will not work regardless. The variable points_label does not exist. The name of the label is “label”.
Do you ever call the function from outside the script? If you don’t call it, the code will not run.
“Class body” means the line of code is not part of any function, you must indent your code for it to be part of the function above it.
tysfm this worked and now i can continue with my game
