Here's the code:
function onPlayerEntered (swag)
local GUI = script.Parent.Parent
GUI.Parent = swag.PlayerGui
wait(5)
GUI.BackgroundTransparency = 0.1
wait(0.1)
GUI.BackgroundTransparency = 0.2
wait(0.1)
GUI.BackgroundTransparency = 0.3
wait(0.1)
GUI.BackgroundTransparency = 0.4
wait(0.1)
GUI.BackgroundTransparency = 0.5
wait(0.1)
GUI.BackgroundTransparency = 0.6
wait(0.1)
GUI.BackgroundTransparency = 0.7
wait(0.1)
GUI.BackgroundTransparency = 0.8
wait(0.1)
GUI.BackgroundTransparency = 0.9
wait(0.1)
GUI.BackgroundTransparency = 1
GUI.Active = false
game.Players.ChildAdded:connect (onPlayerEntered)
end
Doesn't give me errors, but it won't fade like it should.

3 comments
Is GUI a screengui or a frame?
Frame. It's parented inside of a textlabel, though.
I mean, the script is parented inside of a textlabel.