hello I am currently working on my first game in godot. It is a pong replica with power ups I am currently having difficulty resetting the scene when the score that is specified is reached. This is my code:
if(PlayerSore == 10 || OpponentScore == 10):
get_tree().paused = true
if Input.is_action_pressed("ui_reset"):
get_tree().reload_current_scene()
this is all happening in the func _process(delta):
function.