local TweenService = game:GetService("TweenService")
local Textbutton = script.Parent
local Frame = Textbutton:WaitForChild("Frame")
local TweenInfo = TweenInfo.new(2,Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0,false,0)
local goal = {Visible = false}
local Tween = TweenService:Create(Frame, TweenInfo, goal)
Textbutton.MouseButton1Click:Connect(function()
Tween:Play()
end)