Im trying to make a dropper like in a tycoon but i cant get it to delete the parts right. Once the limit is reached the ore never reaches the ground. What im trying to do is it'll delete ore that has already fell.
local dropper = script.Parent.Laser.Dropper
local count = 0
local limit = 50
while true do
wait(0.1)
if count <= limit then
count = count + 1
drop = script.Parent.Ore:Clone()
drop.Position = dropper.Position + Vector3.new(-5,0,0)
drop.Parent = dropper
drop.Transparency = 0
drop.Anchored = false
drop.CanCollide = true
else
count = count - 1
ore = dropper:FindFirstChild("Ore")
ore:Destroy()
end
end

1 comment
This is close but im looking for something that deletes ores constantly instead of placing them all then removing.