I am using this kit > https://devforum.roblox.com/t/simple-sandbox-tycoon-kit/1488280 for a sandbox tycoon game like Miners Haven.
But...! There is no Ore Limit from what I can see. I know how to see how many children are in a folder called 'OreDrops' or something but how would I go about making a script where it stops droppers from dropping if it has reached MAX capacity? I would also like to add a script where you can upgrade it with money, etc. How would I do this and if you want to fix my code or something here you go:
local drops = game.Workspace.Plots.Plot1.MiscInfo.OresDropped:GetChildren()
local number = #children
print(number)
This should print a number of how many children, so how do I use that for a OreLimit?

1 comment
I will accept your answer even though I fixed it myself :)