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
|
  |
| Joined: 26 Apr 2009 |
| Total Posts: 10 |
|
| |
|
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
|
  |
| 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
|
  |
| 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 |
|
|