generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Message glitch

Previous Thread :: Next Thread 
BlueBlood12 is not online. BlueBlood12
Joined: 07 Jul 2011
Total Posts: 1377
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
BlueBlood12 is not online. BlueBlood12
Joined: 07 Jul 2011
Total Posts: 1377
16 May 2013 03:04 PM
?
Report Abuse
BlueBlood12 is not online. BlueBlood12
Joined: 07 Jul 2011
Total Posts: 1377
16 May 2013 03:49 PM
^^
Report Abuse
zars15 is not online. zars15
Joined: 10 Nov 2008
Total Posts: 9999
16 May 2013 03:52 PM
Where exactly it stops working?
Report Abuse
shotgreen999 is not online. shotgreen999
Joined: 29 Nov 2009
Total Posts: 376
16 May 2013 03:59 PM
What the output?
Also this is a messy script are you new?
Report Abuse
BlueBlood12 is not online. BlueBlood12
Joined: 07 Jul 2011
Total Posts: 1377
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 is not online. Looah
Joined: 22 Feb 2013
Total Posts: 922
16 May 2013 04:07 PM
learn elseif
fake loading is stupid

print 'siggy'
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image