MouseButton1Down:connect(function(players) local plays = game.Players.LocalPlayer.Players:GetChildren() if plays:Isa "TextButton" then plays.Visible = true else plays.Visible = False end end)
This is not the finished code.
If the text button in the frame it will make both if then not visible . just a side note