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

How to use ClickFunction?

Asked by 10 years ago

I haven't every been able to figure it out

Possibly using a door as a example?

2 answers

Log in to vote
1
Answered by
tumadrina 179
10 years ago

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)

1
Doesn't have to be a LocalScript, unless you want it to do client stuff when clicked. Tkdriverx 514 — 10y
0
oh, I didn't know that, yank you tumadrina 179 — 10y
0
thank* tumadrina 179 — 9y
Ad
Log in to vote
-1
Answered by 10 years ago

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

Answer this question