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

how do i make a part react (like printing something) when clicked?

i have already added a click decter i just need to know how to script it

2 answers

✓ Accepted answer

put a script inside of the click detector

and paste this inside of the script:

local Click = script.Parent -- this is for getting the click detector

Click.MouseClick:Connect(function() -- MouseClick is the event used for click
print("my parent has been clicked ;-;")
end)

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