
Hello i creating a Tycoon and when i buy a dropper i’ve got this error, but the dropper spawned, it’s a problem ?
Dropper Script :
wait(2)
workspace:WaitForChild("PartStorage")
local cd = script.Parent:WaitForChild("Cooldown")
local cashVal = script.Parent:WaitForChild("Cash")
while true do
wait(cd.Value)
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 = cashVal.Value -- How much the drops are worth
--local gui = script.BillboardGui:Clone()
--gui.Script.Disabled = false
--gui.Parent = part
part.CFrame = script.Parent.Drop.CFrame * CFrame.new(0,-1.75,0)
--part.FormFactor = "Custom"
part.Size=Vector3.new(1.5, 1.5, 1.5) -- Size of the drops
--part.TopSurface = "Smooth"
--part.BottomSurface = "Smooth"
game.Debris:AddItem(part,12) -- How long until the drops expire
end
Thank you 