A seat that fires a projectile when a key is pressed

I’m currently working on a mech game, and I want to make a seat where if a key is pressed, a projectile is fired out of a part. Can anyone provide a script? I’m not so good at scripting. I appreciate all answers, just the ones that really help!

You must first choose in what way you want to do it.
Then what projectile and in what direction and how. And what to do.
Since I’m on mobile now and can’t provide anything, I can say that there’s a lot of instructions on how to do it. You just have to look well.