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.
Join our Discord, we plan to release more free, open-sourced products. Furthermore, you can gain support there!
Get our deploy model here, and follow setup steps below.
- Move the
Deploy
script toServerScriptService
. - Create a
Folder
calledItems
and put it inWorkspace
. - Create a
Folder
calledSupplies
and put it inWorkspace
. - Create a
Folder
calledTools
and put it inServerStorage
. - Parent the
Tool
calledRestock Tool
toServerStorage
, 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.
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.