It prints this in the Output "ScreenGui is not a valid member of PlayerGui", when ScreenGui clearly is a child of PlayerGui! Here's the script:
game.Players.PlayerAdded:connect(function(plr)
local name = plr.Name
local gui = plr.PlayerGui.ScreenGui.TextLabel
gui.BackgroundTransparency = 0.9
wait(0.01)
gui.BackgroundTransparency = 0.8
wait(0.01)
gui.BackgroundTransparency = 0.7
wait(0.01)
gui.BackgroundTransparency = 0.6
wait(0.01)
gui.BackgroundTransparency = 0.5
wait(0.01)
gui.Text = name .. "has entered the game!"
end)

1 comment
I have made some edits to my answer, improving it.