When build game the scripts won't work

every time i click build and run none of the scripts will work. my gun won’t shoot when I coded it but it works with ready made scripts?

The scripts work in unity but not when the game is exported to exe