Calling animated sprites through an Export Value

So I’m working on dialogue for my game and I’ve been learning how to use export values. I thought it was neat that I could use them for adding .tres to my scene. However I got the file to attach to the character but I can’t seem to get the animation to play. I’m just using AnimatedSprite if that changes anything

I’ve been using the same names on animations, so I can easily change .tres but I’ve been working on just using the same names such as their mood, so same animation plays but from a different file:

@onready var Sprite = $Sprite
@export var CustomSprite: AnimatedSprite

func ready():
	Sprite = CustomSprite
func Random():
	CustomSprite.play("Angry")

This hasn’t worked exactly but if someone has a solution to make it work or fix the overall problem, that’d be great!

What are you trying to do with your ready function?

I wanted to have it choose the .tres and set it for the rest of the code, I feel like there has to be an easier way but the Ready Func was just a quick work around ig. So id have like a list of names that the func would look through and the ready would confirm it based on the name.
Idk if im explaining it well i’m still learning lol