I have a "resume" TextButton in my game's menu. I'd like the menu to disable/disappear when the TextButton is clicked. (Left click/Mouse button 1). Any help is appreciated, thanks :).
function OnClicked()
script.Parent.Parent.Active = false
script.Parent.MouseButton1Click:Connect(OnClicked)
end
the script doesnt WAAARARKKKAKKKRKROAKSDADADAWDASDZCZXCZ >:(
help plz

3 comments
use Enabled instead of active. That just makes it so it cant be interacted with. If its a screengui, that is. And you have your connect statement inside the function.
Connect statement inside the function?
:connect() inside the function. put it outside.