Make a NPC (Worker) use a dropper?
Asked by
7 years ago Edited 7 years ago
03 | local part = Instance.new( "Part" ,workspace.PartStorage) |
04 | part.BrickColor = script.Parent.Parent.Parent.DropColor.Value |
05 | part.Material = script.Parent.Parent.Parent.MaterialValue.Value |
06 | local cash = Instance.new( "IntValue" ,part) |
09 | part.CFrame = script.Parent.Drop.CFrame - Vector 3. new( 0 , 1.6 , 0 ) |
10 | part.FormFactor = "Custom" |
11 | part.Size = Vector 3. new( 1.4 , 1.4 , 1.4 ) |
12 | part.TopSurface = "Smooth" |
13 | part.BottomSurface = "Smooth" |
14 | game.Debris:AddItem(part, 20 ) |
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