Reload current scene returns error but works

Godot Version

4.2.1

Question


returns the error

but this (also player script) doesn’t return the error
c

Have you tried this?

get_tree().reload_current_scene()

I think this post will help you