extends Area2D func _on_body_entered(body): if body.is_in_group("Player"): body.get_parent().Coin += 1 self.queue_free()