Answers for "click detector roblox"

7

how to know who clicked a click detector roblox

function GoGoGo()
	print("executing some code")
    print("code code code")
    error("error!!")
end
script.Parent.ClickDetector.MouseClick:Connect(GoGoGo)
Posted by: Guest on January-20-2021
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
1

click detector roblox

function onClicked()
	--code here
end
script.Parent.ClickDetector.MouseClick:Connect(onClicked)
Posted by: Guest on November-18-2021

Code answers related to "click detector roblox"

Browse Popular Code Answers by Language