|
| 15 May 2013 04:54 PM |
After it switches maps the first time, the message stays glitched on there, and it wont go away, or switch maps again. Please help be troubleshoot this.
while true do a = Instance.new("Hint") -- This inserts a Text Bar.. a.Parent = game.Workspace -- In Workspace a.Text = "Picking map" -- The Text in the bar wait(1) -- wait 1 second a.Text = "Picking map." wait(1) a.Text = "Picking map.." wait(1) a.Text = "Picking map..." wait(1) a:remove()
lol = (math.random(1,5)) -- it will chose a number between 1-5 if lol == 1 then -- If it chose 1 then b = Instance.new("Message") -- Make a message b.Parent = game.Workspace -- In Workspace b.Text = "Raid has been picked!" -- Message text.. a.Text = "Loading raid..." -- Hint Text wait(2) -- wait 2 seconds. map = game.Lighting.Map1:Clone() -- Ok so in your lighting thingy in explorer put in a map. Call it "Map1" map.Parent = game.Workspace map.Name = "Map1" map:MakeJoints() a.Text = "Start" target = Vector3.new(0, 50, 0) --Ok so put your co-ordinates for where you want your players to go.. for i, v in pairs(game.Players:GetChildren()) do v.Character.Torso.CFrame = CFrame.new(target + Vector3.new(0, i * 5, 0)) --add an offset of 5 for each character end wait(2) a:Remove() b:Remove() end if lol == 2 then b = Instance.new("Message") b.Parent = game.Workspace b.Text = "Slums has been picked!" a.Text = "Loading slums..." wait(2) map = game.Lighting.Map2:Clone() -- Put anouther map in Lighting call it Map2 map.Parent = game.Workspace map.Name = "Map" map:MakeJoints() a.Text = "Start" target = Vector3.new(0, 50, 0) --Ok so put your co-ordinates for where you want your players to go.. for i, v in pairs(game.Players:GetChildren()) do v.Character.Torso.CFrame = CFrame.new(target + Vector3.new(0, i * 5, 0)) end wait(3) a:Remove() b:Remove() end if lol == 3 then b = Instance.new("Message") b.Parent = game.Workspace b.Text = "Standoff has been picked!" a.Text = "Loading standoff..." wait(2) map = game.Lighting.Map3:Clone() -- Make map Map3 and put it in lighting map.Parent = game.Workspace map.Name = "Map" map:MakeJoints() a.Text = "Start" target = Vector3.new(0, 50, 0) --Ok so put your co-ordinates for where you want your players to go.. for i, v in pairs(game.Players:GetChildren()) do v.Character.Torso.CFrame = CFrame.new(target + Vector3.new(0, i * 5, 0)) end wait(3) a:Remove() b:Remove() end if lol == 4 then b = Instance.new("Message") b.Parent = game.Workspace b.Text = "Hijacked has been picked!" a.Text = "Loading Hijacked..." wait(2) map = game.Lighting.Map4:Clone() -- Make Map4 and put it in lighting map.Parent = game.Workspace map.Name = "Map" map:MakeJoints() a.Text = "Start" target = Vector3.new(0, 50, 0) --Ok so put your co-ordinates for where you want your players to go.. for i, v in pairs(game.Players:GetChildren()) do v.Character.Torso.CFrame = CFrame.new(target + Vector3.new(0, i * 5, 0)) end wait(3) a:Remove() b:Remove() end if lol == 5 then b = Instance.new("Message") b.Parent = game.Workspace b.Text = "Slums has been picked!" a.Text = "Loading Slums..." wait(2) map = game.Lighting.Map2:Clone() -- And Map5 map.Parent = game.Workspace map.Name = "Map" map:MakeJoints() a.Text = "Start" target = Vector3.new(0, 50, 0) --Ok so put your co-ordinates for where you want your players to go.. for i, v in pairs(game.Players:GetChildren()) do v.Character.Torso.CFrame = CFrame.new(target + Vector3.new(0, i * 5, 0)) end wait(3) a:Remove() b:Remove() end wait(500) -- Change this to how long you want your round to be.. c = Instance.new("Message") c.Parent = game.Workspace wait(3) c:Remove() game.Workspace.Map:Remove() end |
|
|
| Report Abuse |
|
| |
| |
zars15
|
  |
| Joined: 10 Nov 2008 |
| Total Posts: 9999 |
|
|
| 16 May 2013 03:52 PM |
| Where exactly it stops working? |
|
|
| Report Abuse |
|
|
| 16 May 2013 03:59 PM |
What the output? Also this is a messy script are you new? |
|
|
| Report Abuse |
|
|
| 16 May 2013 04:05 PM |
Im not new to roblox, im sorta new to scripting though. I only know the basics like: variables/nil/wait/loops/functions/etc.
|
|
|
| Report Abuse |
|
Looah
|
  |
| Joined: 22 Feb 2013 |
| Total Posts: 922 |
|
|
| 16 May 2013 04:07 PM |
learn elseif fake loading is stupid
print 'siggy' |
|
|
| Report Abuse |
|