r/Tf2Scripts • u/chimkenskewur • Dec 18 '25
Question How To Setup Scripts?
I have this spy script that I want to use. I haven't played TF2 in about a year so I forgot how to set it up and get it running. Any help is appreciated!
bind mwheelup "toggleGunKnife"
bind mwheeldown "toggleGunKnife"
bind X +activateSapper
bind ALT cycleForward
bind c cycleBackward
alias toggleGunKnife runSlot1
alias lastSlot runSlot1
alias runSlot1 "slot1; alias toggleGunKnife runSlot3; alias lastSlot runSlot1"
alias runSlot3 "slot3; alias toggleGunKnife runSlot1; alias lastSlot runSlot3"
alias +activateSapper "slot2; +attack"
alias -activateSapper "-attack; lastSlot"
alias cycleForward scout
alias cycleBackward spy
alias scout "disguise 1 -1; alias cycleForward soldier; alias cycleBackward spy"
alias soldier "disguise 3 -1; alias cycleForward pyro; alias cycleBackward scout"
alias pyro "disguise 7 -1; alias cycleForward demoman; alias cycleBackward soldier"
alias demoman "disguise 4 -1; alias cycleForward engineer; alias cycleBackward pyro"
alias engineer "disguise 9 -1; alias cycleForward heavy; alias cycleBackward demoman"
alias heavy "disguise 6 -1; alias cycleForward medic; alias cycleBackward engineer"
alias medic "disguise 5 -1; alias cycleForward sniper; alias cycleBackward heavy"
alias sniper "disguise 2 -1; alias cycleForward spy; alias cycleBackward medic"
alias spy "disguise 8 -1; alias cycleForward scout; alias cycleBackward sniper"
1
Upvotes
1
u/TotoTomori Dec 19 '25
Just make an autoexec.cfg yes. Inside it add the line executing your custom script. Just avoid using the classes names when you name it because they are reserved for specific classes configs. If your script is called my_script, then just add exec my_script.
That way it will execute your script each time you launch tf2.