How to change the parent of a node from GDScript?

ℹ Attention Topic was automatically imported from the old Question2Answer platform. Asked By Zylann ⚠ Old Version Published before Godot 3 was released. I’m trying to put a node under another parent from script, but surprisingly I got many errors. First, I tried: new_parent.add_child(node…