Click Detector Roblox

[Solved] Click Detector Roblox | Lua - Code Explorer | yomemimo.com
Question : how to know who clicked a click detector roblox

Answered by : impossible-iguana-o8sehk6jlg7u

function GoGoGo()	print("executing some code") print("code code code") error("error!!")
end
script.Parent.ClickDetector.MouseClick:Connect(GoGoGo)

Source : | Last Update : Wed, 27 Jan 21

Question : lua click detection

Answered by : relieved-raccoon-4kv02n4evc46

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

Source : | Last Update : Mon, 21 Sep 20

Question : click detector roblox

Answered by : munchduster

function onClicked()	--code here
end
script.Parent.ClickDetector.MouseClick:Connect(onClicked)

Source : | Last Update : Thu, 25 Nov 21

Question : roblox click detector

Answered by : creare

--LUA
--put the script as a child of a part
--make a click detectora child of the same part
--get click detector refrence
local clickDetector = script.Parent.ClickDetector
--create a function to be fired when the click detector is clicked
function onMouseClick()	--put your code here	print("You clicked me!")
end
--this "connects" the event that happens when you click the click detector
--to the function above
clickDetector.MouseClick:connect(onMouseClick)

Source : | Last Update : Thu, 09 Jun 22

Answers related to click detector roblox

Code Explorer Popular Question For Lua