Here is the code:
if copy.ItemType.Value == "Dropper" then
copy.Parent = tycoonBaseplate:FindFirstChild("PurchasedItems")
spawn(function()
local dropper = copy
local loopWaitTime = dropper:WaitForChild("LoopWaitTime")
local oreValue = dropper:WaitForChild("OreValue")
local dropperPart = dropper:WaitForChild("DropperPart")
while wait(loopWaitTime.Value) do
local newOre = Instance.new("Part")
newOre.Name = "Ore"
newOre.Parent = dropper
newOre.Size = dropperPart.Size
newOre.Position = dropperPart.Position
game.Debris:AddItem(newOre, 25)
local cash = Instance.new("NumberValue")
cash.Name = "Cash"
cash.Parent = newOre
cash.Value = oreValue.Value
end
end)

1 comment
I happen to know that there are four purchasable items.