You need to save that file as a .lua in your toribash scripts folder.
Go to wherever you have tb saved for me, its my C drive. Then go to Games -> Toribash X.X(where X.X is the version you use) -> Data -> Scripts, and save the .lua file in there. Then open toribash and it should be in the scripts.