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: No Output...

Previous Thread :: Next Thread 
PrinceCamelot is not online. PrinceCamelot
Joined: 08 Jul 2011
Total Posts: 489
17 Jul 2011 02:17 AM
Its sup

Derp = {"MAP1", "MAP2", "MAP3"}
Choose = Derp[math.random(1, #Derp)] --Don't you love my derp variable :3
--End of Variables--

--Start of Script--
while true do
Chosen = Choose
game.Lighting.Chosen:Clone().Parent = game.Workspace
wait(300)
Chosen:Remove()
end
Report Abuse
linkskills is not online. linkskills
Joined: 12 Jun 2010
Total Posts: 6642
17 Jul 2011 02:19 AM
Nothing is wrong there but I'm not sure aout the


game.Lighting.Chosen:Clone().Parent

I think it woudl be

game.Lighting.Chosen:Clone()Parent
Report Abuse
Apocalyps is not online. Apocalyps
Joined: 15 Feb 2009
Total Posts: 816
17 Jul 2011 04:00 AM
Derp = {"MAP1", "MAP2", "MAP3"}
Choose = Derp[math.random(1, #Derp)] --Don't you love my derp variable :3
--End of Variables--

--Start of Script--
while true do
Chosen = game.Lighting[Choose]:Clone()
Chosen.Parent = game.Workspace
wait(300)
Chosen:Remove()
end
Report Abuse
Apocalyps is not online. Apocalyps
Joined: 15 Feb 2009
Total Posts: 816
17 Jul 2011 04:03 AM
I think you want it to place a random map every 300 seconds, right? then the script above wont work as intended either...

try this instead:

Derp = {"MAP1", "MAP2", "MAP3"}
--End of Variables--

--Start of Script--
while true do
Chosen = game.Lighting[Derp[math.random(1, #Derp)]]:Clone() -- select a random map and clone it
Chosen.Parent = game.Workspace -- place the clone in workspace
wait(300)
Chosen:Remove()
end
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