Lua click detection

This article is tagged with: Lua click detection and lua

lua click detection

local clickDetector = workspace.Part.ClickDetector

function onMouseClick()
print("You clicked me!")
end

clickDetector.MouseClick:connect(onMouseClick)

This article is tagged with: Lua click detection and lua