Here's What I Have So Far, Im Not Very Good With Click Detectors
script.Parent.ClickDetector.MouseClick:Connect(onClicked)
Here's What I Have So Far, Im Not Very Good With Click Detectors
script.Parent.ClickDetector.MouseClick:Connect(onClicked)
The Gui "Text Buttons" or "Image Buttons" have "Click-Detectors" built-in. You could put this code into a local script in one of the Button types above.
function OnClicked()
end
script.Parent.MouseButton1Click:Connect(OnClicked)
Don't forget to set the SurfaceGui's adornee or else it won't work.
Only if you are using a surface Gui /\
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
So you want a SurfaceGui on a part that is clickable?