Are you testing this in a live instance or in studio?
Note that this event does not work as expected in Play mode because the player is created before scripts run that connect to PlayerAdded. To handle this case, as well as cases in which the script is added into the game after a player enters, create an onPlayerAdded() function that you can call to handle a player’s entrance.