Is there some sort of OnGameStart command?

I’m trying to create a script that switches the characters weapons, and when you start the game both of the weapons are showing. Is there a command that I could use to only have one weapon in the characters hand when the game starts, The code is also in javascript.

You could instantiate a weapon when its called upon.