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

NPC use a click detector? [closed]

Asked by 6 years ago

This question already has an answer here:

Make a NPC (Worker) use a dropper?

Im basicly trying to make it so a NPC will click a Dropper, (Spam dropper) Any hep will be nice ^.^

Thanks! James Bread Armyofdeath909

0
I don't think that's possible. ClickDetectors are made for players since they have a mouse and such. You could script it to look like the NPC has clicked the button though. Mayk728 855 — 6y

Marked as Duplicate by hiimgoodpack, abnotaddable, and Thundermaker300

This question has been asked before, and already has an answer. If those answers do not fully address your question, then please ask a new question here.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

Instead of

script.Parent.ClickDetector.MouseClick:connect(function()
--lol
end)

you could do this to pretend the NPC is clicking.

function lol()
--lol
end

wait(0.1)

lol()
Ad