extends Control func _ready(): pass func _process(delta): pass func _on_yes_button_pressed(): if Global.goScene == "res://scenes/mainmenu-background.tscn": if Global.teddyAuthorityID == 1: Global.kickAllPlayers = true Global.playingGame = false await get_tree().create_timer(0.5).timeout Networking.peer.close() get_tree().change_scene_to_file(Global.goScene) func _on_no_button_pressed(): self.queue_free()