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 » Scripters
Home Search
 

Re: map script stopped working

Previous Thread :: Next Thread 
richardmaher is not online. richardmaher
Joined: 12 May 2014
Total Posts: 196
25 Jun 2015 04:49 PM
local MapFolder = game.ServerStorage
local waitTime = 10000
while wait() do
local Maps = MapFolder:GetChildren()
if #Maps == 0 then
script:remove()
return
end
local MapChosen = Maps[math.random(1,#Maps)]
local MapChosenClone = MapChosen:Clone()
MapChosenClone.Parent = game.Workspace
MapChosenClone:MakeJoints()
for i, v in pairs(game.Players:GetChildren()) do
v:LoadCharacter()
end
local msg = Instance.new('Hint',game.Workspace)
\
msg.Text = 'This map: '..MapChosenClone.Name..'!'
wait(waitTime)
MapChosenClone:Destroy()
msg.Text = 'Choosing maps...'
end
http://www.roblox.com/Forum/ShowForum.aspx?ForumID=33
Report Abuse
GeoVolcano is not online. GeoVolcano
Joined: 05 Jul 2012
Total Posts: 1433
25 Jun 2015 04:50 PM
local waitTime = 10000

Who the heck would wait 166 minutes and 40 seconds?
Report Abuse
powerhotmail123 is not online. powerhotmail123
Joined: 11 Apr 2011
Total Posts: 5041
25 Jun 2015 04:51 PM
local MapFolder = game.ServerStorage
local waitTime = 10000
while wait() do
local Maps = MapFolder:GetChildren()
if #Maps == 0 then
script:Destroy()
return nil
end
local MapChosen = Maps[math.random(1, #Maps)]
local MapChosenClone = MapChosen:Clone()
MapChosenClone.Parent = game.Workspace
MapChosenClone:MakeJoints()
for i, v in pairs(game.Players:GetChildren()) do
v:LoadCharacter()
end
local msg = Instance.new('Hint',game.Workspace)
msg.Text = 'This map: '..MapChosenClone.Name..'!'
wait(waitTime)
MapChosenClone:Destroy()
msg.Text = 'Choosing maps...'
end
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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