yes, I am sure, because player can not move until the lights are out…
here is the part of lights script (light is var, if Lightstimertimeout, light +=1 and game_run is var in main scene after that start working escape button for pause menu):
func _process(delta):
if light >= 6:
$Lights_Timer.stop()
get_tree().paused = false
get_parent().get_parent().game_run = true
if transparency != 0:
transparency -= 0.02
else:
queue_free()
$CanvasLayer/Light_Sprite.modulate = Color(1,1,1,transparency)