📜  如何知道谁点击了点击检测器 roblox - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:43.246000             🧑  作者: Mango

代码示例2
local clickDetector = workspace.Part.ClickDetector
 
function onMouseClick()
    print("You clicked me!")
end
 
clickDetector.MouseClick:connect(onMouseClick)