Hello scripting helpers,

I'm having a little problem with teleportation.

Here is my script currently:-

if mapChosen == "Playground" then
	local mapPlaygroundSpawns = game.Workspace.Playground.Spawnpoints:GetChildren()
		for i, player in ipairs(game.Players:GetChildren()) do
   			player.Character.Torso.CFrame (mapPlaygroundSpawns[math.random(#mapPlaygroundSpawns)].Position)
	end
end

What it does:-

If the map is "Playground" then it will define mapPlaygroundSpawns as the spawnpoints in the map. Then it will get all the players and teleport all the players to different locations around the map.

I'm getting an error on line 4:

ServerScriptService.Game:4: bad argument #3 to 'CFrame' (CFrame expected, got Vector3)

Any help would be great. Thanks!