local TS = game:GetService("TweenService")
local TW = TweenInfo.new(2, Enum.EasingStyle.Linear)
local TGoal = {
BackgroundTransparency = 0.6
}
local Ngoal = {
BackgroundTransparency = 0
}
local D = false
local Button = script.Parent
local Frame = script.Parent.Parent.Frame
local TweenT = TS:Create(Frame, TW, TGoal)
local TweenN = TS:Create(Frame, TW, Ngoal)
function Tweener()
if D == false then
D = true
TweenT:Play()
print("1")
else
D = false
TweenN:Play()
print("2")
end
end
Button.MouseButton1Click:Connect(Tweener)