LungFatang Don't do 3.x tutorials in 4.x. Always use the engine version the tutorial is using. Some bits of GDScript syntax changed between versions and if you're a total beginner this may utterly confuse you.
Your specific problem here is that onready changed to @onready