game.Players.PlayerAdded:connect(function(player)
game.Players:WaitForChild(player)
print("I have waited now.")
game.Players.player:WaitForChild("PlayerGui")
print("That too.")
local A = Instance.new("IntValue")
A.Parent = game.Players.player.PlayerGui
A.Name = "PlayerStatus"
A.Value = 5
end)
Not working at all. When I join it basically says that PlayerGui is not a valid member of Player. What's that supposed to mean? Please help. It's broken. It's supposed to add an IntValue.

6 comments
Make sure you're testing it on a server, NOT IN PLAY SOLO! PlayerAdded events DO NOT WORK in play solo.
Not working! It doesn't create the INTVALUE in PlayerGui :(
Oh you have to test it in online mode, my bad
It's in a server script, right?
Nevermind.
Omg it's official! I placed the script itself directly into PlayerGui which was WHY it didn't execute. It needed to be in workspace. *FACEPALM * FACEPALM * TRIPLE FACEPALM otherwise the script would've WORKED!!!