I think the method is NewPlayer, don't know if that is even a method. I tried almost every method but failed for my script. Can someone help.
There's a PlayerAdded
event of Players
that does exactly what you're looking for. When a player joins the game, this event will fire.
With an anonymous function
game.Players.PlayerAdded:connect(function(plr) print(plr.Name) end)
With a normal function
function newPlayer(plr) print(plr.Name) end game.Players.PlayerAdded:connect(newPlayer)