Hello, I am trying to make objects spawn in my main scene at random times, but I can't seem to grasp the needed code to do this. I came from Unity and the new syntax has been very hard to grasp so far.
So far all the code I have is:
var object_start_pos = $ObjectStartPos.get_children()[0].global_position
var selected_pos = object_start_pos[randi() % object_start_pos.size()]
$ObjectStartPos.emit
$Timer.start()