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

local maps = game.ReplicatedStorage
local Weapon = game.Lighting
while true do

repeat
wait(10)
lobbymsg = Instance.new ("Message")
lobbymsg.text = ("3 Players or more is required to play this game")
lobbymsg.Parent = Workspace
lobbymsg:remove()
until game.Player:GetPlayers()
if players > 2 
    then gamemsg = Instance.new ("Message")
    gamemsg = ("Choosing Maps")
    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:

while true do
wait()
local Weapon = game.Lighting
local MapAmount = 2 -- Change to how many maps you got
repeat
wait(1)
lobbymsg = Instance.new ("Message")
lobbymsg.Text = ("3 Players or more is required to play this game")
lobbymsg.Parent = game.Workspace
lobbymsg:Remove()
until #game.Players:GetChildren() >= 3
    gamemsg = Instance.new ("Message")
    gamemsg.Text = ("Choosing Maps")
    Map = game.ReplicatedStorage:FindFirstChild("Map"..(math.random(1, MapAmount))):Clone()
    Map.Parent = game.Workspace
    wait(60) -- Change to how long one map lasts
    Map:Remove()
end
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