This isn't script related, but when I put the custom model (rigged and welded) inside StarterPlayer and the name is StarterCharacter it spawns in the character, but you aren't the character. Basically when you spawn in the character is next to you and you don't control it.
Name your model "StarterCharacter" and then place the model in StarterPlayer folder.