A tool-assisted speedrun or tool-assisted superplay (TAS) is generally defined as speedrunning a game in an emulator with the goal of creating a theoretically perfect playthrough. As the name implies, a TAS is not performed by an actual human being, but rather by a program or a piece of software that delivers frame-perfect optimized controller input to complete the game in the fastest way possible. The script that delivers these inputs is provided by the TAS author, who would use their knowledge of the game's mechanics and various tools built into the emulator to optimize a speedrun until no more improvements can be identified.