Here the script i tried..
local playergui = game.Players.LocalPlayer.PlayerGui script.Parent.MouseButton1Click:Connect(function() game:GetService("ReplicatedStorage").AdultEvent:FireServer() wait(.01) script.Parent.Parent.Parent.Parent.Visible = false local fadingClone = playergui.BlackFadingGui.Frame:Clone() fadingClone.Parent = playergui.BlackFadingGui fadingClone.Visible = true wait(.1) for loop = 0.01, 15 do wait (.1) fadingClone.BackgroundTransparency = loop/5 game:GetService ("RunService"). Stepped:Wait() wait(0.1) end end)