This video will show you how to make Tycoon Droppers in Roblox Studio, if you want to see the pervious video on how to make Tycoon Money Collectors, here is the link: • Roblox Studio - How To Make Tycoon Money C...
Dropper Script:
local ServerStorage = game:GetService("ServerStorage")
local DropItem = ServerStorage:WaitForChild("DropItems"):WaitForChild("DropItem")
local DropperBlock = script.Parent:WaitForChild("DropperBlock")
local DropperIsOn = DropperBlock:WaitForChild("IsOn")
local DropWait = 1
local function TurnOn()
while DropperIsOn.Value == true do
local CloneItem = DropItem:Clone()
CloneItem.Position = DropperBlock.Position
CloneItem.Parent = workspace
task.wait(DropWait)
end
end
local function TurnOff()
-- Whatever you want to do when the dropper stopped.
end
DropperIsOn.Changed:Connect(function(newValue)
if newValue == true then
local StartDropping = coroutine.wrap(TurnOn)
StartDropping()
else
TurnOff()
end
end)