You can spend coins you have collected on weapons on one of the islands in this example. The Purchasable Object script manages these purchases for you by trading a Collectable for a Weapon. Since Weapon Data scripts in the "Cosmetic and Weapon Database" object have "Cost" and "Cost Collectable Data Id" properties they work with the purchasing system.
As long as the player has the dbb_player_state script any purchases will be automatically saved.
I'll cover the properties on the Purchasable Object script below:
Purchasable Data Id
Spawn Template On Purchase
Destroy On Purchase
Purchase Amount
Cost Label
{displayName}{description}{cost}{maxOwnable}{costDisplayName}{costDescription}Purchased Label
Purchase Screen Id
Purchase Fx
Purchase Sound
Cannot Purchase Sound
Interaction Arrow Offset
Interaction Arrow Voxel Object