how would i change the name of a spawned scientist?
Changing display name of scientists?Solved
Probably with a player.displayName field. Since usually player-like NPCs inherit from BasePlayer.
Did not work i had to do entity.toplayer.player.Displayname
Because you need a class that inherits from a BasePlayer, probably NPCPlayer and similar. So .ToPlayer can work too.
Locked automatically