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

How to use ClickFunction?

I haven't every been able to figure it out

Possibly using a door as a example?

2 answers

you need to put a click detector in a door and use a local script(and put it in StarterPack or StarterGui) and do something for example

workspace.Door.ClickDetector.MouseClick:connect(function()
print("Clicked")
end)

(sorry if that is not what you meant)

3 comments

1

Doesn't have to be a LocalScript, unless you want it to do client stuff when clicked.

0

oh, I didn't know that, yank you

0

thank*

A part in the workspace can't have a clickdetector...

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