|
| 19 Jan 2013 01:45 PM |
time = 210 Maps = game.Lighting.Maps while true do for i, v in pairs(Maps:GetChildren()) do if Workspace:FindFirstChild(v.Name) then Workspace[v.Name]:Destroy() wait(time) end end end Message = Instance.new("Message", Workspace) Message.Text = "Changing maps . . ." wait(3) MapTable = Maps:GetChildren() local randomnum = math.random(1,#MapTable) RandomMap = MapTable[randomnum] Message.Text = "Map Loaded: " .. RandomMap.Name wait(2) RandomMap:Clone().Parent = Workspace wait(1) Message:Destroy() end
This script has no errors when used in the output, but it won't generate any map whatsoever. I have tried everything that I know, yet it still won't do anything. |
|
|
| Report Abuse |
|
|
| |
|
sting4672
|
  |
| Joined: 29 Oct 2009 |
| Total Posts: 1396 |
|
|
| 19 Jan 2013 01:57 PM |
| This script has no errors but you might have coded it incorrectly |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2013 01:58 PM |
| Uhh, that's what I just said... And your "tip" wasn't really that helpful. |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2013 02:00 PM |
There's an extra end?
~ṡсɾïρτïṉģ hεlρεɾṡ ۩ lυαlεαɾṉεɾṡ ④ øƒвќṃṿј~ ღ ▂▃▅▆█ρεώḋïερïε☄сυτïερïε█▆▅▃▂ღ 【▬】 |
|
|
| Report Abuse |
|
|
sting4672
|
  |
| Joined: 29 Oct 2009 |
| Total Posts: 1396 |
|
|
| 19 Jan 2013 02:03 PM |
| Would the extra "end" break the script though? I didn't think it would |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2013 02:04 PM |
| With or without that it still wouldn't work. |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2013 02:09 PM |
| Maybe I could just ask people about this at night, where most of the Scripting Helpers are online. |
|
|
| Report Abuse |
|
|
sting4672
|
  |
| Joined: 29 Oct 2009 |
| Total Posts: 1396 |
|
|
| 19 Jan 2013 02:09 PM |
| May as well take it out and give it a shot, have nothing to lose |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2013 02:12 PM |
| I just did, and nothing happened. |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2013 02:17 PM |
Should I let this thread die?
|
|
|
| Report Abuse |
|
|
|
| 19 Jan 2013 02:28 PM |
| That won't work unless there's already a map on the field (from the map file in Lighting) when it starts. Or at least that's what the problem looks like, I may be wrong. |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2013 02:34 PM |
| I was asking why it wasn't generating a map at first, but if it only works when there is already a map, well then what would I need to do to generate a map at first? |
|
|
| Report Abuse |
|
|
| |
|
| |
|