extends Node3D var we = [ preload("res://Level/World/world_environment.tscn"), preload("res://Level/World/world_environment2.tscn"), ] var current = null func _ready(): randomize_env() func randomize_env(): if current: current.queue_free() current = we[randi() % we.size()].instantiate() add_child(current)