Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do i script a map changer ?

Asked by 10 years ago

This is what i have did

01local maps = game.ReplicatedStorage
02local Weapon = game.Lighting
03while true do
04 
05repeat
06wait(10)
07lobbymsg = Instance.new ("Message")
08lobbymsg.text = ("3 Players or more is required to play this game")
09lobbymsg.Parent = Workspace
10lobbymsg:remove()
11until game.Player:GetPlayers()
12if players > 2
13    then gamemsg = Instance.new ("Message")
14    gamemsg = ("Choosing Maps")
15    Maps =#(math.random(1,2)

what do i do next ? `

0
You should try looking for a Free Model minigames script and decrypting it to figure out how it works. This code is very... bad is the best way to I can describe it. adark 5487 — 10y

2 answers

Log in to vote
0
Answered by 10 years ago

Call the maps in ReplicatedStorage like Map1 Map2 Map3.... Then do this:

01while true do
02wait()
03local Weapon = game.Lighting
04local MapAmount = 2 -- Change to how many maps you got
05repeat
06wait(1)
07lobbymsg = Instance.new ("Message")
08lobbymsg.Text = ("3 Players or more is required to play this game")
09lobbymsg.Parent = game.Workspace
10lobbymsg:Remove()
11until #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()
18end
Ad
Log in to vote
0
Answered by 10 years ago

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.

Answer this question