function Hello ()
print (game.Players.NumPlayers)
end
game.Players.PlayerAdded:connect(Hello)
So I just started a few days ago learning to program and this is my first script so far and I don't know whats wrong with this!?!
P.s I am using a local script if that means anything.

2 comments
Try and use a server script.
Read the description: http://wiki.roblox.com/index.php?title=API:Class/Players/PlayerAdded