Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

why isn't nothing coming out my dropper?

Asked by 5 years ago

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

0
Any errors? CaptainD_veloper 290 — 5y
0
Are there any errors in the output? dude10000009 0 — 5y
0
r u sure it doesn't go through the floor? HappyTimIsHim 652 — 5y
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 zblox164 531 — 5y
0
Now if you read the content in the question then you can figure out what the question means. zblox164 531 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

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
0
didnt work Dragonbeast1236 -5 — 5y
0
Instance.new("class",parent) is deprecated. use local obj = Instance.new("class") obj.Parent = parent yHasteeD 1819 — 5y
Ad

Answer this question