This script is only 6 lines, and when I remove the PlayerAdded function and the end) it works perfectly fine, but when I try to start the game with this block of code nothing works. Any help? Thanks!
game.Players.PlayerAdded:connect(function(plr)
wait(3)
script.Parent.TextWelcome.Text = ("Welcome to Sky Hero!") --tried to do concat but playeradded function doesn't work
script.Parent.Parent.WelcomeFrame:TweenPosition(UDim2.new(0.3, 0, 0.1, 0), "Out", "Quad", 3, true)
end)
Also, if it helps at all this is the alignment in Explorer. [https://i.imgbomb.com/E1Q8p.jpg]

4 comments
I was going to concatenate on line 3 but decided to look for the main problem first.
I believe the parameter is the problem. If you're not adding "Plr", then it's not needed.
Makes sense, but didn't quite work. I've tried removing the parameter and it didn't change anything. :/
Oh that's the problem, you need to insert it into playergui.