Random Map changer problem?
I'm trying to make a random map chooser and it picks one map but then after it says "changing mapz" the message goes away and the map stays there and I want it to keep changing randomly.
01 | local ran = math.random( 1 , 5 ) |
02 | local msg = Instance.new( "Message" ) |
03 | msg.Parent = game.Workspace |
07 | game.Lighting.field 1 :clone().Parent = game.Workspace |
08 | game.StarterGui.CurrentMap.TextLabel.Text = "Current Map: City" |
10 | msg.Text = "Changing mapz" |
14 | game.Workspace.field 1 :remove() |
16 | game.Lighting.field 2 :clone().Parent = game.Workspace |
17 | game.StarterGui.CurrentMap.TextLabel.Text = "Current Map: Original" |
19 | msg.Text = "Changing mapz" |
23 | game.Workspace.field 2 :remove() |
25 | game.Lighting.field 3 :clone().Parent = game.Workspace |
26 | game.StarterGui.CurrentMap.TextLabel.Text = "Current Map: ClockWork Village" |
28 | msg.Text = "Changing mapz" |
32 | game.Workspace.field 3 :remove() |
34 | game.Lighting.field 4 :clone().Parent = game.Workspace |
35 | game.StarterGui.CurrentMap.TextLabel.Text = "Current Map: Mario Bros." |
37 | msg.Text = "Changing mapz" |
41 | game.Workspace.field 4 :remove() |
43 | game.Lighting.field 5 :clone().Parent = game.Workspace |
44 | game.StarterGui.CurrentMap.TextLabel.Text = "Current Map: Mount Doom" |
46 | msg.Text = "Changing mapz" |
50 | game.Workspace.field 5 :remove() |