#Click detection

12 messages · Page 1 of 1 (latest)

grand crypt
#

Hello, I want to make a GUI that has a textbutton that at the moment of sinking it, a ClickDetector is pressed, so to speak, touch that ClickDetector through the textbutton, I need help please.

grand crypt
#

yes

#

local button = script.Parent.TextButton
local detector = script.Parent.ClickDetector

local function onClicked()
detector:Activate()
end

button.MouseButton1Click:Connect(onClicked)

#

I made this script but for x or y reasons it doesn't work for me

#

ok thx

thorn scaffold
#

wait so

#

you want the player to fire a clickdetector

#

when the player clicks on a textbutton?

#

out of curiousity

#

why

#

couldnt u just activate a remote on the textbutton's activation

#

skip the clickdetector entirely?