I’m working on a weapons system and a shop system. Basically, the logic should work this way:
- Player clicks weapon in the shop UI.
- Server checks if the player has unlocked that weapon.
- If the player has unlocked that weapon, put the weapon in the player’s inventory. (else return false)
I want to make it so that the weapons/tools are stored on the server, and get cloned to the player’s client only when necessary. Where can I put the weapons so that I can clone them to the client from the server, but so they are not directly accessible from the client?