How can I clone from server-side?

I’m working on a weapons system and a shop system. Basically, the logic should work this way:

  1. Player clicks weapon in the shop UI.
  2. Server checks if the player has unlocked that weapon.
  3. 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?

You can put them in ServerStorage and use :Clone() to clone it to the client.

2 Likes

I see, I wasn’t sure if it was entirely possible to clone from ServerStorage.