|
| 05 Dec 2012 10:02 PM |
This is a map changer script I made for my game, and it gets a map from the Lighting and puts it in the Workspace, but how could I make it so it gets a map from a folder (a model) that's in the Lighting?
while true do game.Lighting.Map1:clone().Parent = game.Workspace wait(305) local msg = Instance.new("Message") msg.Parent = game.Workspace msg.Text = ("") wait(0.0) msg:remove() game.Workspace.Map1:remove() wait(0.0) game.Lighting.Map2:clone().Parent = game.Workspace wait(305) msg.Parent = game.Workspace msg.Text = ("") wait(0.0) msg:remove() game.Workspace.Map2:remove() wait(0.0) end |
|
|
| Report Abuse |
|
|
Dodeca
|
  |
| Joined: 11 Sep 2011 |
| Total Posts: 13649 |
|
|
| 05 Dec 2012 10:05 PM |
| Hmm. Do you want the folder's children to be visible? |
|
|
| Report Abuse |
|
|
|
| 05 Dec 2012 10:06 PM |
| I don't know. Just a model I insert into the Lighting which will be the folder. The folder will be named "Maps." |
|
|
| Report Abuse |
|
|
Dodeca
|
  |
| Joined: 11 Sep 2011 |
| Total Posts: 13649 |
|
|
| 05 Dec 2012 10:09 PM |
Yes, make a model of all the maps together, name it Maps. Then do this: game.Lighting.Maps.(Map you want):Clone() |
|
|
| Report Abuse |
|
|
mic144
|
  |
| Joined: 14 Oct 2009 |
| Total Posts: 1598 |
|
|
| 05 Dec 2012 10:11 PM |
local backup = game.Lighting.ModelYouwant:Clone() backup.Name = "ModelYouWant1" backup.Parent = game.Workspace
~I ate Telamon's chicken~ |
|
|
| Report Abuse |
|
|
|
| 05 Dec 2012 10:37 PM |
@Dodeca
Would I group all the maps together or put a Model in the Lighting named "Maps" and then put the maps in there? |
|
|
| Report Abuse |
|
|
| |
|