How do i make a dropper for a tycoon

Right now i see that tycoons are popular so im trying to build one but idk how to make a dropper heres what ive tried

local drops = 1

repeat
	task.wait(3)
	local freddy = Instance.new("Part")
	local droparea = script.Parent
	freddy.Parent = workspace
	freddy.Size = Vector3.new(1, 1, 1)
	freddy.Position = Vector3.new(droparea)
until drops == 11111111111111111

Please help it would be so much to me

2 Likes

You are putting an Instance into the Vector3 arguments. There are also some other minor issues with your code.

Here is an explained correction:

local drops = 0

while true do -- although the drops will never reach 11quadrilion, this makes it run forever
	task.wait(3)
    drops+=1 -- increases the amount of drops by 1
	local freddy = Instance.new("Part")
	local droparea = script.Parent
	freddy.Size = Vector3.new(1, 1, 1)
	freddy.Position = droparea.Position -- the Vector3 position of "droparea"
    freddy.Parent = workspace
end

If you want to make a limit to the amount of times it can drop, you can replace

while true do

to

while drops<100 do -- will only continue if the amount of drops is under 100

It would crash before there would be that (Please tell me you destroy the drops, trust me, in my game there are problems)

I am sure he removes the parts somewhere else. Regardless, that code should not crash until a very long time. He has already included a wait() function

Im making a part that would destroy it

Let me know how the code I sent to you works.

Good! My game has nothing to destroy the things, so it lags

I think I have something that will help you even better!..A Dropper/Generator

Dropper Making

So first let’s make our dropper, a part for this instance, make it kind of blocky, put it in the sky not in the ground, anchor it, can collide is false, now rename it to Dropper, set transparency to 0.7, there our dropper is done

Part Making

Make your part (should be smaller than the dropper). Rename it to Glob, Now put the part in the dropper. Not like set the Glob as a child to the dropper, like put it in the dropper, the Glob has to be smaller than the dropper or it wont work, so after you put your Glob IN the dropper, (dropper and the part’s parent should be Workspace) ok now lets script,

Script Making

Make a script in ServerScriptService, delete the “print(“Hello World!”) and type the following

local Dropper = workspace.Dropper

local Glob = workspace.Glob

while true do

local GlobClone = Glob:Clone()

GlobClone.Parent = Dropper

Glob.CFrame = Dropper.CFrame

wait(2)

end)

It worked thanks im making a security breach tycoon

This might help for another game im making idk

1 Like

But thanks for the effort! Ill probably use it for a basically tree hitting game

1 Like

What’s this thing about Sercuity Breach anyway. Also just searched it and I found like 5 tycoons

Lol, aight, Have a good day/night

Security breach is a new fnaf and i watched a few yts play it

You get at least 4 showing up.