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

Miners haven dropper error?

Asked by 4 years ago

Hi. i am making a miners haven mod and one of my scripts don't work and i have no idea why.

here is the part that doesn't work poop = script.Parent.LED:Clone() poop.Parent = part

LED is a script and part is the drop being made

wait(math.random(1,1000)/500) repeat wait() until script.Parent.Parent.Parent:FindFirstChild("Producing") local lib = require(game.ReplicatedStorage.OreLibrary)

while true do wait(2) -- How long in between drops if script.Parent.Parent.Parent.Producing.Value then

    local part,cash = lib.newOre(script.Parent.Parent, script.Parent.Parent.Name)

poop = script.Parent.LED:Clone()
poop.Parent = part
cash.Value = 2 -- How much the drops are worth
part.TopSurface = "Smooth"
part.BottomSurface = "Smooth"
part.CFrame = script.Parent.Drop.CFrame - Vector3.new(0,1,0)
part.Size=Vector3.new(1,1,1) -- Size of the drops
script.Parent.Drop.Thump:Play()
end

end

here is the full script. i don't know how this script exactly works so i might have done something wrong

Answer this question