I need help with spawning scenes into my game

Godot Version

4.3

Question

Could anybody please tell me what I’m doing wrong here? Even though I made an instance, it still wouldn’t work. THX for any support.

This is the codes for Godot 3 not 4, try this:

var CUBEYS = CUBEYS.instantiate()

Just you need to change the “instance()” to “instantiate()”

1 Like

I had similar problem like this,if still dosent work try adding one more get_parent() so it looks like this:
get_parent().get_parent().add_child()

thanks!

thanks so much! without you, I’d probably wouldn’t know.

1 Like