Autolplay on load animation is playing twice

Godot Version



My Animation Player keeps playing its on load animation (its spawning animation) twice when I only want it to play once. The animation is not called in the Node’s script at all so I am a bit lost on why its playing twice. This is the script here for context but again the animation is set to autoplay on load so its not called in the script.

func _ready():
func _physics_process(_delta):
	direction = position.direction_to(randomPlayer.global_position)
	var distance = position.distance_to(randomPlayer.position)
	if distance <= attackRange:
		velocity = velocity.lerp(Vector2.ZERO, friction)
		velocity = velocity.lerp(direction.normalized() * speed, acceleration)		
	if direction.x > 0:
		$Sprite2D.scale.x = -1
		$Sprite2D.scale.x = 1
	if health <= 0:

func _on_animation_player_animation_finished(anim_name):
	if anim_name == "spawn":

Are you sure the ‘Loop’ button within the “spawn” animation is NOT highlighted?

My previous experience with “Autol play on load” was that I put one of the objects in my “main scene” into autoload, and then after execution, the result would be two runs.
1 time is the object I placed in the main scene, 1 time is automatically executed once in “autoload”

Yes I am certain, its not set to loop

Were you able to find a work around? The objects where the animation loops twice is instanced in via code so its not placed directly into the scene if that matters