of     1   

VedDragon
#170728815Tuesday, August 11, 2015 4:59 AM GMT

i want players , all of them to teleport to a randomly selected of my 5 maps and spawn randomly in 2 different teams I have, how do I do this?
GraphicsSettings
#170729309Tuesday, August 11, 2015 5:03 AM GMT

get all players to tp math.random for maps and teams
CaptainGector
#170729392Tuesday, August 11, 2015 5:04 AM GMT

Ugh... Okay just a second.
VedDragon
#170729567Tuesday, August 11, 2015 5:05 AM GMT

So can I have a basic layout of the math random please
Iaku
#170737136Tuesday, August 11, 2015 6:27 AM GMT

Random = math.random(1,10)
CaptainGector
#170780982Tuesday, August 11, 2015 5:33 PM GMT

I've got the script almost ready, give me a moment and It'll be done and user-friendly.
DeepBlueNoSpace
#170781237Tuesday, August 11, 2015 5:35 PM GMT

Bro, don't script for free. I'm not a fan of proverbs, but give a man a fish, he eats for a day, teach a man to fish and feed him for his life. Try these tutorials, we'll happily help you: http://wiki.roblox.com/index.php?title=Absolute_beginner%27s_guide_to_scripting http://www.roblox.com/Forum/ShowPost.aspx?PostID=153548676 Women are like fine wine, I can't get their tops off
CaptainGector
#170934429Wednesday, August 12, 2015 10:06 PM GMT

I'm scripting only for learning, why make someone else pay for that? Here's the script, should work fine if you make a model out of every one of the five maps and, name them all map1 - map5. MAKE SURE TO PUT THE MAPS IN SERVER STORAG! --[[ First off, make a model out of every one of your maps, then, name each map map1,map2,map3,map4, and map 5. ]]-- wait(1) local counter = 0 -- The counter that determines whether it will be blue or red. local players = game.Players:GetPlayers() -- Get the players local Blue = game.Teams.Blue.TeamColor -- Find the teams local Red = game.Teams.Red.TeamColor for i, player in ipairs(players) do -- Split the players var into 2 groups, Red and Blue. print(" ") -- For debugging purposes, just a new line print(player) -- Prints out the current player name wait(.1) -- Very important wait if counter == 0 then -- Uses the 1-0 counter var to choose whether the player goes on blue or red player.TeamColor = Blue -- Puts the player on the right team print("Blue got " .. player.Name) -- Prints out which team got which player counter = 1 -- Changes the counter var so it's set for the next team else player.TeamColor = Red -- Same as before print("Red got " .. player.Name) counter = 0 end end print(" ") -- Just another newline print("Ended") -- Prints out "Ended" to the output bar print(" ") -- ANOTHER new line local maps = { -- The map randomizer workspace.map1,-- Finds all the maps workspace.map2, workspace.map3, workspace.map4, workspace.map5 } local tp = 0 -- the location of the brick that the players will get teleported to. local map = nil -- declares a var for the map function c() -- A function start local rand = math.random(1,5) -- chooses a random map map = maps[rand] -- Still working on choosing a random map print(map.Name.. " Was chosen") -- Prints the chosen map tp = map.TPHere.CFrame -- Changes the tp var to the CFrame of the TPHere part, a child of every map print("Number of players: " .. #game:GetService("Players"):GetPlayers()) -- Prints the number of players in-game for i, player in pairs(game:GetService("Players"):GetPlayers()) do -- Puts all the players in the map if player.Character and player.Character:FindFirstChild("Torso") then player.Character.Torso.CFrame = tp + Vector3.new(0, i * 5, 0) print("Was "..map.Name) -- Prints what map was used wait(.1) -- A cute little wait end end end c() --Fires the function.
CaptainGector
#170934596Wednesday, August 12, 2015 10:07 PM GMT

When you want to set it up on a timer Ved, tell me and I'll help! Of course any other scripter can do it too.
VedDragon
#171075166Thursday, August 13, 2015 11:32 PM GMT

Eat, Build, Sleep, Repeat ty, ill tell you when i need it, this helps so much

    of     1