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: Very old script, medium sized script, needs to be converted.

Previous Thread :: Next Thread 
jameszx is not online. jameszx
Joined: 26 Apr 2009
Total Posts: 10
03 Feb 2014 06:48 PM
Problem: This script still works on my older place, but in my new places there is no outcome. Could someone please change it to match scripting during these times?


Script:

num = 3
main = "Map1"
maps = { "Map1", "Map3", "Map2" }
time = 10
function change()
m = math.random(1,num)
t = game.Lighting:findFirstChild(maps[m]):clone()
t.Parent = workspace
ms = Instance.new("Message",workspace)
ms.Text = game.Lighting:findFirstChild(maps[m]).Name.. " has been chosen."
wait(2)
ms:remove()
end
function mainit()
game.Workspace[main]:remove()
end
wait(2)
mainit()
while true do
wait(2)
change()
wait(time)
t:remove()
end
Report Abuse
jameszx is not online. jameszx
Joined: 26 Apr 2009
Total Posts: 10
03 Feb 2014 06:58 PM
Bump?
Report Abuse
jameszx is not online. jameszx
Joined: 26 Apr 2009
Total Posts: 10
03 Feb 2014 07:04 PM
Could someone please help? I haven't created a new script in over two years, I'm extremely outdated.
Report Abuse
Forlapse is not online. Forlapse
Joined: 07 Jan 2014
Total Posts: 122
03 Feb 2014 07:14 PM
Since you've been gone for so long, you may know of the new-ish feature where you can right click on any line and select "Go to script error". Not sure if that helps with anything.
Report Abuse
jameszx is not online. jameszx
Joined: 26 Apr 2009
Total Posts: 10
03 Feb 2014 07:21 PM
Actually, it turns out there wasn't any error. I just forgot that I 'had' to have a map from the list in Workspace already.


[Thread Resolved]
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