local player = game.Players.LocalPlayer
BT = script.Parent.TextExamine
function onPlayerEntered(newPlayer) newPlayer:WaitForDataReady() BT.Text = player.GlobalCount.Value script.Parent.TotalPlayers.Text = "Total Players" player:WaitForChild("GlobalCount") if player.GlobalCount.Value == 0 then player.GlobalCount.Value = player.GlobalCount.Value + 1 elseif player.GlobalCount.Value == 1 then print(" plus one ") end end
game.Players.ChildAdded:Connect(onPlayerEntered)
What is wrong with this script because it doesn't seem to execute when a player joins.

3 comments
https://forum.scriptinghelpers.org/topic/82/how-to-format-questions-answers-on-the-main-site
You know, that "newPlayer:WaitForDataReady()" is deprecated. http://wiki.roblox.com/index.php?title=API:Class/Player/LoadNumber
thanks didn't know