while true do wait(2.5) -- How long in between drops 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 = 10 -- How much the drops are worth part.CFrame = script.Parent.Drop.CFrame - Vector3.new(0,1.6,0) part.FormFactor = "Custom" part.Size=Vector3.new(1.4, 1.4, 1.4) -- Size of the drops part.TopSurface = "Smooth" part.BottomSurface = "Smooth" game.Debris:AddItem(part,20) -- How long until the drops expire end
I have this script for a dropper, and basicly i want i want a NPC (Worker) To click the button on the dropper, But thats inpossible, Click Detectors are for Humans only, So how would i make it do it automaticly when i buy another thing? (Worker)
How would i go about doing this? Any help is awesome! James Bread Armyofdeath909