Ingame key bind

Trying to make a keybind which does the following:

Shoots 1 one bullet
Waits 20 seconds
Shoots 1 one bullet
Waits 20 seconds
Shoots 1 one bullet
Waits 20 seconds

bind key “+attack; wait 20000; +attack” does not work, it will just hold down left mouse button and spray.

you need to add -attack

I did but that didn’t seem to do anything either.

He means that (Assuming wait is a valid command) it should be “+attack; -attack; wait 2000; aliasName”
Note that this won’t stop unless you un-alias your bind

This will keep shooting until I press it again? Also it’s 20000 instead of 2000 right? I assume it’s in milliseconds.

No, it will keep shooting (Once every whatever long) until you disable the alias you made it to be. If you didn’t make an alias - it will just keep shooting once every whatever long (Until you close GMod)