# Deploy Script

{% hint style="info" %}
stockLogic uses a deploy script, requiring our source code. Using our deploy script allows us to silently update our system without the need for you to restart the setup process.\
\
We do not recommend for you to directly use the source code unless you have to create changes that aren't possible with the built-in plugin system. If you use the source code, you will not get automatic updates & bug fixes to your game.
{% endhint %}

**Join our** [**Discord**](https://discord.gg/ngGCWy6ytY)**, we plan to release more free, open-sourced products. Furthermore, you can gain support there!**

Get our deploy model [here](https://roblox.com/library/9145770328), and follow setup steps below.

* Move the `Deploy` script to `ServerScriptService`.
* Create a `Folder` called `Items` and put it in `Workspace`.
* Create a `Folder` called `Supplies` and put it in `Workspace`.
* Create a `Folder` called `Tools` and put it in `ServerStorage`.
* Parent the `Tool` called `Restock Tool` to `ServerStorage`, if you wish to change this tool, you can.

The `Items` folder expects "categories", which are folders. **These categories shall match the name of the tool (case sensitive) they point to**, an example is shown below.

Objects inside categories shall be either a `Part`, `Union`, `BasePart`, etc. Make sure these objects don't already have a `ClickDetector` or `ProximityPrompt` inside them, or the system will disable them.

{% hint style="danger" %}
We do not support `Models` or `Folders` at the moment, we do plan to support them in the future though!
{% endhint %}

![](https://3578749685-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F37muQD073TzEneC03mGQ%2Fuploads%2F1vgC4s4nPxjH7nYNe0AM%2Fimage.png?alt=media\&token=977324fd-41b4-484e-a663-5e164a8e33b8)

![](https://3578749685-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F37muQD073TzEneC03mGQ%2Fuploads%2Fp7Vmu04PVRAd2iBdVscE%2Fimage.png?alt=media\&token=0a575dcf-1d39-471a-851c-0c52e19f3b96)

The `Supplies` folder is essentially spawn points where staff members have the abilitiy the get the `Restock Tool` that you made earlier.

The `Tools` folder expects only `Tool` objects, if you do not know how to make tools, please view Roblox documentation [here](https://developer.roblox.com/en-us/articles/intro-to-player-tools).
