Okay so it works with the one player (the piggy) teleporting to the waiting area but the player doesnt go anywhere and i retyped the code 3 different times. here is the line of code that im talking about:
function module.TeleportPlayers(players, mapspawns) for i, player in pairs(players) do local character = player.Character if character:FindFirstChild("HumanoidRootPart") then player.Character.Humanoid.WalkSpeed = 16 local rand = Random.new() player.Character.HumanoidRootPart.CFrame = mapspawns[rand.NextInteger(1,#mapspawns)].CFrame + Vector3.new(0,10,0) end end end return module
Please let me know if you know how to fix this.