Help with create script

Hi guys, I would like to help me create a script.
The script would be the character, press a key, and in that box a weapon out randomly.

It would be very difficult?

Greetings.

Could you be more specific please?
What box and weapon?

This is a FPS game, the player in front has a box, pressing , I would like to leave a gun io random which I have previously created

that may be simple to create, send a Raycast and check if it hits the box, if it hits and the button E is being pressed then the gun should be active

something like this :

i think this should do, let me know if you get any errors

keep in mind that your gun should start disabled

I think I was not well understood, because of my bad English, sorry XD

What I do is like the mystery box black ops zombies game, type something like that.

Thanks for answering: D