--Teleport all the players function teleportPlayers() for i,v in pairs(players) do --will be together in script v.Character.HumanoidRootPart.CFrame = currentmap:FindFirstChild(chosenmap.Value).Spawn * CFrame.new(math.random(5,10),0,math.random(5,10)) --will be together in script_ end end
Here is the part of the script that is giving me problems. It will not teleport. NOTE:
Try this:
--Teleport all the players function teleportPlayers() for i,v in pairs(players) do --will be together in script v.Character.HumanoidRootPart.CFrame = CFrame.new(currentmap:FindFirstChild(chosenmap.Value).Spawn * CFrame.new(math.random(5,10),0,math.random(5,10))) --will be together in script_ end end