active propreity is true
when i test it with my tablet (android device) textbutton backround color turns grey but when i hold my finger on it but does nothing else.
script.Parent.TouchTap:connect(function() script.Parent:Destroy() end)
can you please help me make it so that my textbutton gets destroyed when it is tapped
script.Parent.MouseButton1Click:connect(function() script.Parent:Destroy() end)
you mean this?
You'd Want to use TouchTap
script.Parent.TouchTap:connect(function() script.Parent:Destroy() end)
Roblox Wiki's Description of TouchTap is : Fired when a user taps their finger on a TouchEnabled device. For more knowledge, TouchTap
Though, MouseButton1Click would work too.