I want the surface gui button fade out when clicked and the wait about 2 minutes then fade in,but it just keeps looping for a long time.
b = script.Parent
b.MouseButton1Click:connect(function()
for n = 0,1,0.1 do
wait(0.1)
b.BackgroundTransparency =n
b.TextTransparency = n
if n == 1
then
break
end
for i = 1,0,-0.1 do
wait(0.1)
b.BackgroundTransparency =i
b.TextTransparency = i
if i == 0 then
break
end
end
end
end)
