Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do i use the onClicked function?

i have no idea how to use it, i know onTouch but i don't know onClicked. Do i need a click detector or something?

3 answers

With GUI instances;

TextButton.MouseButton1Down:connect(function() --Button1 is Left Click, Button2 is left Click. Down is when the LMB is down, and Up is when LMB is Up. Same with RMB.
	--code
end)

With Parts (Click Detector);

ClickDetector.MouseClick:connect(function()
	--code
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.