This is what i have did
01 | local maps = game.ReplicatedStorage |
02 | local Weapon = game.Lighting |
03 | while true do |
04 |
05 | repeat |
06 | wait( 10 ) |
07 | lobbymsg = Instance.new ( "Message" ) |
08 | lobbymsg.text = ( "3 Players or more is required to play this game" ) |
09 | lobbymsg.Parent = Workspace |
10 | lobbymsg:remove() |
11 | until game.Player:GetPlayers() |
12 | if players > 2 |
13 | then gamemsg = Instance.new ( "Message" ) |
14 | gamemsg = ( "Choosing Maps" ) |
15 | Maps = #(math.random( 1 , 2 ) |
what do i do next ? `
Call the maps in ReplicatedStorage like Map1 Map2 Map3.... Then do this:
01 | while true do |
02 | wait() |
03 | local Weapon = game.Lighting |
04 | local MapAmount = 2 -- Change to how many maps you got |
05 | repeat |
06 | wait( 1 ) |
07 | lobbymsg = Instance.new ( "Message" ) |
08 | lobbymsg.Text = ( "3 Players or more is required to play this game" ) |
09 | lobbymsg.Parent = game.Workspace |
10 | lobbymsg:Remove() |
11 | until #game.Players:GetChildren() > = 3 |
12 | gamemsg = Instance.new ( "Message" ) |
13 | gamemsg.Text = ( "Choosing Maps" ) |
14 | Map = game.ReplicatedStorage:FindFirstChild( "Map" ..(math.random( 1 , MapAmount))):Clone() |
15 | Map.Parent = game.Workspace |
16 | wait( 60 ) -- Change to how long one map lasts |
17 | Map:Remove() |
18 | end |
Someone did say to use a free model, and I happen to have a map changing script that determines who wins and who loses: http://www.roblox.com/Multi-Map-Team-Death-Match-Script-READ-DESC-item?id=84179810
It may take a little bit of time to figure out everything that is in the script.