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

Why doesn't this work?

It's in a regular script inside, the clickdetector, inside a part, inside a model.

script.Parent.MouseButton:connect(function()
	print("Test")
end)

1 comment

0

It's MouseClick, not MouseButton. Plus, if you have FilteringEnable on, I have heard click detectors do not work in them. To fix this, Goulstem answered this question; https://scriptinghelpers.org/questions/17049/

1 answer

Just realized the bug.

1 comment

1

You can edit your original question, there is no need to make a answer.

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