Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

NPC use a click detector?

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

Thanks! James Bread Armyofdeath909

1 comment

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.

1 answer

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()

This discussion is preserved as it was. New answers, comments, and votes are closed.