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: Ok, so question

Previous Thread :: Next Thread 
ShadowAley is not online. ShadowAley
Joined: 23 Jun 2010
Total Posts: 4823
28 Feb 2015 03:29 PM
local mapsfolder = game.ServerStorage:WaitForChild("MapsFolder")
local currentmapfolder = game.Workspace:WaitForChild("CurrentMapFolder")
local maps = mapsfolder:GetChildren()

while true do
for _,v in pairs(maps) do
local mapchoice = math.random(1, #maps)
end
end


I made it this far, how would I clone "Mapchoice" into the currentmapfolder?
Report Abuse
Razurix is not online. Razurix
Joined: 30 Sep 2011
Total Posts: 5376
28 Feb 2015 03:30 PM
local mapsfolder = game.ServerStorage:WaitForChild("MapsFolder")
local currentmapfolder = game.Workspace:WaitForChild("CurrentMapFolder")
local maps = mapsfolder:GetChildren()

while true do
for _,v in pairs(maps) do
local mapchoice = math.random(1, #maps)
mapchoice:Clone()
mapchoice.Parent = currentmapfolder
end
end


Shut your pie hole
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
28 Feb 2015 03:31 PM
mapchoice:Clone().Parent = currentmapfolder
Report Abuse
ShadowAley is not online. ShadowAley
Joined: 23 Jun 2010
Total Posts: 4823
28 Feb 2015 03:32 PM
15:31:45.190 - Workspace.MainScript:8: attempt to index local 'mapchoice' (a number value)
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
28 Feb 2015 03:33 PM
local mapchoice = maps[math.random(1, #maps)]

mapChoice:Clone().Parent = currentmapfolder
Report Abuse
Razurix is not online. Razurix
Joined: 30 Sep 2011
Total Posts: 5376
28 Feb 2015 03:36 PM
^


Shut your pie hole
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