Convert players to npcs

can you tell me the script