HOW TO MAKE A TYCOON DROPPER SYSTEM | Roblox Studio Tutorial

Описание к видео HOW TO MAKE A TYCOON DROPPER SYSTEM | Roblox Studio Tutorial

In todays video I show you how to make tycoon dropper systems in Roblox Studio, I will be showing you a variety of different ways you can make these work by either having them drop 1 item, random items, with or without wait time and even if they are automatic or manual. I Hope you enjoyed the video, Have a lovely rest of your day! If you are a bit confused what to do, Feel free to create a ticket in my discord server and we can help you out!

Script 1 (Automatic Dropper [ 1 Item ] :

local Dropper = script.Parent
local ItemDropping = game.Workspace.Item -- Change Item to whatever your item which you want to drop is called
local DropWait = 0.1 -- Change this to how often you want your item to drop

local function dropItem()
local newItem = ItemDropping:Clone()
newItem.Parent = game.Workspace
newItem.CFrame = Dropper.CFrame * CFrame.new(0, -2, 0) -- This sets the position to where the item will drop
end

while true do -- This is the main loop
wait(DropWait)
dropItem()
end

Script 2 (Automatic Dropper [ Random, Multiple Items ] :

local Dropper = script.Parent
local ItemsDropping = {game.Workspace.Item, game.Workspace.Item1, game.Workspace.Item2} -- Change Item1/Item2/Item3 to whatever your item which you want to drop is called.
local DropWait = 1 -- Change this to how often you want your item to drop

local function shuffleTable(tbl)
local len = #tbl
for i = len, 2, -1 do
local j = math.random(i) -- This part makes them drop randomly.
tbl[i], tbl[j] = tbl[j], tbl[i]
end
end

local function dropItemsRandomly()
shuffleTable(ItemsDropping) -- This part shuffles the items.
for _, item in pairs(ItemsDropping) do
local newItem = item:Clone()
newItem.Parent = game.Workspace
newItem.CFrame = Dropper.CFrame * CFrame.new(0, -2, 0) -- This sets the position to where the item will drop.
wait(DropWait)
end
end

while true do
dropItemsRandomly()
end

Script 3 (Manual Button Dropper [ 1 Item, Without Debounce ] :

local Dropper = script.Parent
local ItemDropping = game.Workspace.Item -- Change Item to whatever your item which you want to drop is called
local ClickPart = game.Workspace.ClickPart -- Change ClickPart with the actual name of the part with the ClickDetector

local function onClick()
local newItem = ItemDropping:Clone()
newItem.Parent = game.Workspace
newItem.CFrame = Dropper.CFrame * CFrame.new(0, -2, 0) -- This sets the position to where the item will drop
end

local clickDetector = ClickPart:FindFirstChild("ClickDetector")
if clickDetector then
clickDetector.MouseClick:Connect(onClick)
end

Script 3.5 (Manual Button Dropper [ 1 Item, With Debounce ] :

local Dropper = script.Parent
local ItemDropping = game.Workspace.Item -- Change Item to whatever your item which you want to drop is called.
local ClickPart = game.Workspace.ClickPart -- Change ClickPart with the actual name of the part with the ClickDetector.
local CooldownTime = 3 -- Change this to how long you want the cooldown to be between clicks.

local debounce = false

local function onClick()
if not debounce then
debounce = true
local newItem = ItemDropping:Clone()
newItem.Parent = game.Workspace
newItem.CFrame = Dropper.CFrame * CFrame.new(0, -2, 0) -- This sets the position to where the item will drop.
wait(CooldownTime)
debounce = false
end
end

local ClickDetector = ClickPart:FindFirstChild("ClickDetector")
if ClickDetector then
ClickDetector.MouseClick:Connect(onClick)
end

-----------------
OTHER SCRIPTS ARE IN PINNED COMMENT (We reached max amount of words for the description)
__________

NEW! Floppys Obby Game : https://www.roblox.com/games/14917960...

Floppys Simulator Game: https://www.roblox.com/games/13963457...

FloppyFish Merch Store: https://itz-floppyfish.creator-spring...

If you would like to support me even more, Super Thanks and becoming a Member is also another way to show your appreciation!

🌟 Floppys Discord Server:   / discord  
🌟 Floppys Roblox Game : https://www.roblox.com/games/11301003...

Roblox Studio Tutorial
Roblox Studio
Studio Tutorials

Комментарии

Информация по комментариям в разработке