This is my code and I am trying to Wait for the model "Conveyer2" and then I want to get the children of it. I want to make another Collector for the Droppers to come into for my tycoon game.
for i,v in pairs(script.Parent.PurchasedObjects:WaitForChild("Conveyer2"):GetChildren()) do
if v.Name == "PartCollector" then
v.Touched:connect(function(Part)
if Part:FindFirstChild('Cash') then
Money.Value = Money.Value + Part.Cash.Value
Debris:AddItem(Part,0.1)
end
end)
end
end
