this code is not working , i trying to teleport player from point A to point B in 3d game

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By m5ables
extends Area

export(NodePath) var teleport_enter = null

func _on_Teleport1_body_entered(body):
	if body.is_in_group("teleport_player"):
		get_tree().call_group("teleport_player" , "teleport" ,get_node(teleport_enter).transform)
		print("teleport")

func _on_Teleport2_body_exited(body):
	if body.is_in_group("teleport_player"):
		get_tree().call_group("teleport_player" , "teleport" , get_node(teleport_enter))

and player

func teleport(target_pos):
	transform = target_pos 
	print("ok")