Hello ! I have been trying to teleport the player to a different place but couldnt do it so i searched about it and found [CFrames | Roblox Creator Documentation] (CFrames | Roblox Creator Documentation) but my friend told me to just do player.Character.PrimaryPart.CFrame = CFrame.new(position). Why does it need that much code when you could do it in one line ?
The code your friend gave you will teleport the player around the current place. Teleporting to other places requires more code, you were correct.
Does it have something to do with the max limit of 4000 studs for vectors?
The other script does a bunch of fancy preloading and freezing of the character during teleportation and exact proper positioning of the character, which is usually unneeded for a basic teleportation script
I imagine they made it like that to have maximum versatility for every situation you could realistically imagine, but is really unneeded for most cases