📜  检测被点击的文本按钮 roblox - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:33.498000             🧑  作者: Mango

代码示例1
function leftClick()    print("Left mouse click")end function rightClick()    print("Right mouse click")end script.Parent.MouseButton1Click:Connect(leftClick)script.Parent.MouseButton2Click:Connect(rightClick)