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

Can I add a third map on this Map-Changer Script?

Asked by 10 years ago

I just came up with this script on the free models, yet it only says it can only have 2 maps

This is how it looks like:

-- Read Instructions for help
print("Change Map Script Loaded")
    while true do
    wait(1)
    game.Lighting.field1:clone().Parent = game.Workspace -- Put the maps in the lighting, and name then field1 and field 2
    wait(500) -- You can edit this, this is how long you wan't the field to be on. This is currently on 5 Minutes.
    local msg = Instance.new("Message")
    msg.Parent = game.Workspace
    msg.Text = ("message here")
    wait(4) -- How long you want the text to stay on your screen (editable)
    msg:remove()
    game.Workspace.field1:remove()
    wait(2) -- How long you want to wait for it to go away (editable) (I wouldnt edit it though)

       game.Lighting.field2:clone().Parent = game.Workspace -- this is the second map loading up, copy it un tix its at wait (1) and you will be able to make another map, so far there are 2 maps that can be loaded up field1 and firled 1
    wait(500) -- How long you want field2 to be up.
    msg.Parent = game.Workspace
    msg.Text = ("message here")
    wait(4) -- How long you want the text to stay on your screen (editable)
    msg:remove()
    game.Workspace.field2:remove()
    wait(1) --How long you want to wait for it to go away (editable) (I wouldnt edit it though)


end 

If I wanted to add a THIRD map, would this work?

(THE FIRST PART OF THE SCRIPT)

print("Change Map Script Loaded")
    while true do
    wait(1)
    game.Lighting.field1:clone().Parent = game.Workspace -- Put the maps in the lighting, and name then field1, field2 and field3

I replaced Field1 and Field2 into Field1, Field2 and Field3

And this is the code for the third map (Under the Second Map script)

game.Lighting.field3:clone().Parent = game.Workspace -- this is the second map loading up, copy it un tix its at wait (1) and you will be able to make another map, so far there are 3 maps that can be loaded up field1 and firled 1
    wait(500) -- How long you want field3 to be up.
    msg.Parent = game.Workspace
    msg.Text = ("message here")
    wait(4) -- How long you want the text to stay on your screen (editable)
    msg:remove()
    game.Workspace.field2:remove()
    wait(1) --How long you want to wait for it to go away (editable) (I wouldnt edit it though)

At the beginning, I replaced field2 into field3

Depending if in the lighting section, the maps names are correct for the script, could it work?

2 answers

Log in to vote
0
Answered by
adark 5487 Badge of Merit Moderation Voter Community Moderator
10 years ago

Look at lines 5-13 and 15-22 on the first code block you posted. The only difference between those blocks is the number after field on lines 5 and 12, and 15 and 21.

Simply copy that code block, paste between lines 23 and 24, and edit the two numbers after field to 3. You can do that as many times as you like, for as many maps as you want.

Ad
Log in to vote
-2
Answered by 10 years ago

I think that is possible as I took a glimpse it dosen't seem too big though it may say 2 maps it could overload. Long scripts glitch and mess up at times due to roblox updates. I tested some long message scripts by removing messages and placing more due to a wait() time. I think It is possible but it could also overload. Dragon539195 here look me up if you want to be friends :D

Answer this question