Local Button = script.Parent Button.MouseButton1Click:connect(function() for i = 0, 1, 0.33 do wait(0.3) script.Parent.BackgroundTransparency = i script.Parent.TextTransparency = i end end)
Thats what i have and it works when closing the first Gui, how can i make it change the others too? I tried this:
Local Button = script.Parent.Parent
script.Parent.MouseButton1Click:Connect(function() for _,v in pairs(game.Players.LocalPlayer.PlayerGui:GetDescendants()) do if v:IsA("GuiObject") then spawn(fuction() for i = 1,10 do v.BackgroundTransparency = v.BackgroundTransparency + 0.1 wait() end end) end end end)