Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

why isn't nothing coming out my dropper?

I made a dropper with Drop the can-collide is off and i group it and and name it dropperbase112 and then i group again and name it dropper112 and added a script to it and when i test in roblox studio nothing will come out please help

Here the script

wait(2)
workspace:WaitForChild("PartStorage")

while true do
	wait(2.5) -- How long in between drops
	local part = Instance.new("Part",workspace.PartStorage)
	part.BrickColor=script.Parent.Parent.Parent.DropColor.Value
	part.Material=script.Parent.Parent.Parent.MaterialValue.Value
	local cash = Instance.new("IntValue",part)
	cash.Name = "Cash"
	cash.Value = 10 -- How much the drops are worth
	part.CFrame = script.Parent.Drop.CFrame - Vector3.new(0,1.6,0)
	part.FormFactor = "Custom"
	part.Size=Vector3.new(1.4, 1.4, 1.4) -- Size of the drops
	part.TopSurface = "Smooth"
	part.BottomSurface = "Smooth"
	game.Debris:AddItem(part,20) -- How long until the drops expire
end

Thanks

5 comments

0

Any errors?

0

Are there any errors in the output?

0

r u sure it doesn't go through the floor?

0

If you read the question without reasoning then your problem is that you have a script. Look at the title. LOL! Why isn't 'nothing' coming out of my dropper. LOL

0

Now if you read the content in the question then you can figure out what the question means.

1 answer

This is an easy answer. Use this script

wait(2)
workspace:WaitForChild("PartStorage")
local drop = script.Parent.Drop -- Add the local script
while true do
    wait(2.5) -- How long in between drops
    local part = Instance.new("Part",Drop) -- the part will now spawn in drop. Make sure you make drop and the part above it no collided!
    part.BrickColor= script.Parent.Parent.Parent.DropColor.Value
    part.Material= script.Parent.Parent.Parent.MaterialValue.Value
    local cash = Instance.new("IntValue",part)
    cash.Name = "Cash"
    cash.Value = 10 -- How much the drops are worth
    part.CFrame = script.Parent.Drop.CFrame - Vector3.new(0,1.6,0)
    part.FormFactor = "Custom"
    part.Size=Vector3.new(1.4, 1.4, 1.4) -- Size of the drops
    part.TopSurface = "Smooth"
    part.BottomSurface = "Smooth"
    game.Debris:AddItem(part,20) -- How long until the drops expire
end

2 comments

0

didnt work

0

Instance.new("class",parent) is deprecated. use local obj = Instance.new("class") obj.Parent = parent

This discussion is preserved as it was. New answers, comments, and votes are closed.