On load, Play animation

Is there some kind of code I can use so then when I load into a frame, it’ll play the animation?

Oh! Welcome to the forums!!

Simple enough! You could just add this code into an object’s default or load script for it’s animation you want to play:

// Load Script (runs once upon entering a frame)/Default Script (runs once before all the other scripts)

//this just plays the animation from the beginning!
this.gotoAndPlay(1);

Although I’m only guessing to why your asking… I want to ask what are you trying to achieve.

Meanwhile you can also refer to the sidebar of the code editor or the official website for references and examples!
image