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: How do I randomly choose a map?

Previous Thread :: Next Thread 
jtrobloxian is online. jtrobloxian
Joined: 10 Jul 2013
Total Posts: 2274
19 May 2016 07:00 PM
There are plenty of games that have this, and I want to do something like that. But I don't know how.
Report Abuse
AggressiveCatch is not online. AggressiveCatch
Joined: 17 Jul 2011
Total Posts: 5840
19 May 2016 07:01 PM
local maps = {map1, map2, map3, map4}

local chosen = maps[math.random(1, #maps)]
Report Abuse
jtrobloxian is online. jtrobloxian
Joined: 10 Jul 2013
Total Posts: 2274
19 May 2016 07:03 PM
And put it in the game for that round?
Report Abuse
Skellobit is not online. Skellobit
Joined: 13 Apr 2016
Total Posts: 12758
19 May 2016 07:04 PM
lol
look up clone() on the wiki

Formerly ToxicDominator - add 17,509 posts
Report Abuse
Craftwithcookie is not online. Craftwithcookie
Joined: 21 Dec 2012
Total Posts: 951
19 May 2016 07:05 PM
Also put the maps in replicatedstorage
Report Abuse
Skellobit is not online. Skellobit
Joined: 13 Apr 2016
Total Posts: 12758
19 May 2016 07:07 PM
^ that's only necessary if the game is FilteringEnabled

Formerly ToxicDominator - add 17,509 posts
Report Abuse
AggressiveCatch is not online. AggressiveCatch
Joined: 17 Jul 2011
Total Posts: 5840
19 May 2016 07:08 PM
put them in serverstorage not replicatedstorage the client doesn't need to have access to the maps
Report Abuse
Craftwithcookie is not online. Craftwithcookie
Joined: 21 Dec 2012
Total Posts: 951
19 May 2016 07:11 PM
Everyone will get mad at me if I put it in lighting, though
Report Abuse
jtrobloxian is online. jtrobloxian
Joined: 10 Jul 2013
Total Posts: 2274
19 May 2016 07:12 PM
What's the difference
Report Abuse
Skellobit is not online. Skellobit
Joined: 13 Apr 2016
Total Posts: 12758
19 May 2016 07:13 PM
ReplicatedStorage replicates all children to the client
ServerStorage restricts all children to the server which is more secure

Formerly ToxicDominator - add 17,509 posts
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