ply:SetPos teleporting player to a random spot?

Hey guys, when i try to teleport a player to some co ordinates, it teleports him somewhere else, however if i do setpos in console, it teleports me there just fine?
Im storing my setpos in a table as “spawnpoint”

the code im using is:


Someone help me please!

What is in the index of teams[0].spawnpoint? It has to be a Vector.
Also, I believe you can set the spawn point specific to different teams, so just set the spawn point for the team and then run ply:Spawn() on the player.

So how do i go about doing this in my table?

Edit: tried your method, Still spawning at the incorrect vector.

Im using getpos to get the position