Answers for "how to fire a clicldetector from local script"

2

lua click detection

local clickDetector = workspace.Part.ClickDetector
 
function onMouseClick()
	print("You clicked me!")
end
 
clickDetector.MouseClick:connect(onMouseClick)
Posted by: Guest on September-14-2020

Code answers related to "how to fire a clicldetector from local script"

Browse Popular Code Answers by Language