ui scene not work properly collision shows ui scene

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By S res

another thing i used signals

um so i have a problem these blocks that move forwards at the player what its suppose to do is on body entered is loads a ui scene but it will only show to ui scene

player code:

extends KinematicBody

var velocity = Vector3(0,0,0)

func _ready():
pass

func _physics_process(delta):
if Input.is_action_just_released(“ui_left”):
velocity.x = -10
elif Input.is_action_just_released(“ui_right”):
velocity.x = 10
else:
velocity.x = 0
move_and_collide(velocity)

func _on_Area_body_entered(body):
get_tree().change_scene(“res://Control.tscn”)
flying blocks code:
extends KinematicBody
var velocity = Vector3(0,0,0)
const enemyspeed = 10
func _ready():
pass
func _physics_process(delta):
velocity.z = enemyspeed
move_and_slide(velocity)