Scripting currency

I have been trying for ages to figure this out and I can’t crack it, how do i script in currency to make weapons cost in order to use them in a game mode in trying to make?