I am trying to make a tycoon and am using Zednov’s Tycoon Kit (search ‘Zed’s Tycoon Kit’ in the toolbox under ‘Models’. It is by Zed_Gamer) to help me do this. However, I am having an error with the following script (no, no errors actually appear):
local PartCollector = script.Parent -- Note: there are TWO part collectors with the same name
local Conveyor = script.Parent.Parent.Parent.PurchasedObjects:FindFirstChild("RedRainbowConveyor")
PartCollector.Transparency = 1
PartCollector.CanCollide = false
script.Parent.PartProcessor.Disabled = true -- the script that is disabled is a drop processing script.
if script.Parent.Parent.Parent.PurchasedObjects:FindFirstChild("RedRainbowConveyor") ~= nil then -- if the red rainbow conveyor is purchased
PartCollector.Transparency = 0
PartCollector.CanCollide = true
script.Parent.PartProcessor.Disabled = false
end
The error is that when this conveyor (the RedRainbowConveyor) is purchased, the part collector attached to it does not appear. Dose anyone here know why? If you do, will you tell me how to fix it?