Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Make a NPC (Worker) use a dropper?

Asked by 7 years ago
Edited 7 years ago
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

0
Just make the dropper itself drop automatically and make it look like the worker is doing it. Viking359 161 — 7y
0
What im trying to do is make them buy the dropper, and hire the worker for like 500 Cash Each, armyofdeath909 -6 — 7y
0
All you need to do is delete the old dropper, and make a new automatic dropper along with the worker so it looks like the worker does it for them. Viking359 161 — 7y
0
No, You dont understand armyofdeath909 -6 — 7y
View all comments (3 more)
0
When I started scripting, I tried making a NPC using a tool which is a free model. It doesn't work out. I don't know what the tool even does. So you should not try this before you learn a little bit. hiimgoodpack 2009 — 7y
0
just make the npc use hand gestures and make it look like he is clicking on the button :3 greatneil80 2647 — 7y
0
I want the dropper and the worker too be 2 seperte things, A worker witch needs to be hired at 500$ per 5 mins, and the dropper 50k armyofdeath909 -6 — 7y

Answer this question