I'm trying to make my script wait until the character loads. I attempted to do..
game.Players.PlayerAdded:wait() --and..
game.Players.ChildAdded:wait()
..but neither of the functions fired. Probably fired before the character joined the game.
--In "ReplicatedFirst"
local Player = game.Players.???
local PlayerGui = Player.WaitForChild('PlayerGui')
local ScreenGui = PlayerGui:WaitForChild('ScreenGui')
local Loading = Instance.new('TextLabel',ScreenGui)
Loading.Text = 'Loading...'
Loading.BackgroundTransparency = 0.5
Loading.BackgroundColor = BrickColor.new(0,0,0)
Loading.Size = UDim2.new(1,0,1,0)
Loading.Font = 'SciFi'
Loading.Name = 'Loading'
Is there any other way to get the player name so I can just do game.Players:WaitForChild(LocalPlayer)?

5 comments
My question was if you could make some type of wait() until the Player instance appeared. The reason why I am doing this is because sometimes I get an error online that LocalPlayer doesn't exist, so I try to make something to wait. I don't think there's a way to do that. I'll just do: while true do wait() if game.Players.LocalPlayer then break end end
I just did that :P
To solve you're problem there is a function in a player called 'CharacterAdded', i highly suggest u to use it :P
Ok, thanks for the advice!
No problem, glad i actually helped you with something :D