Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.
You don't need a script for this. All you need to do is start on a blank map, and have an event pop up the message "What is your name?" and then, from the third event page, use the command "Name Input Processing". Then, just use the same event to teleport the player to the starting point.