SilverMin
|
  |
| Joined: 29 Sep 2013 |
| Total Posts: 250 |
|
|
| 27 Nov 2015 01:11 AM |
admins = {"SilverMin","ixSilver"} --Script to open room modelName = "brick"; currentModel = nil;
game.Players.PlayerAdded:connect(function(nP) for _,v in pairs(admins) do if nP.Name:lower() == v:lower() then nP.Chatted:connect(function(msg) if msg:lower() == "load brick" then --Command currentModel = game.Lighting:waitForChild(modelName):Clone(); --This is the simulation model name. Change it to the model's name. currentModel.Parent = game.Workspace; end if msg:lower() == "end brick" and currentModel~=nil then M = Instance.new("Hint", workspace) M.Text = "Removing Map" --Message game:GetService("Debris"):AddItem(M,3); currentModel:Destroy() end end) end end end)
Here's my problem. All my maps are in lighting. There's currently 2 maps in lighting. One named 'brick' as shown above. One named 'obby'. ( doesn't know how to type another ) Somebody help me type another script, but, in the same script, as shown above,continue below.
How do I load another map?
admins = {"SilverMin","ixSilver"} --Script to open room modelName = "brick"; currentModel = nil;
game.Players.PlayerAdded:connect(function(nP) for _,v in pairs(admins) do if nP.Name:lower() == v:lower() then nP.Chatted:connect(function(msg) if msg:lower() == "load brick" then --Command currentModel = game.Lighting:waitForChild(modelName):Clone(); --This is the simulation model name. Change it to the model's name. currentModel.Parent = game.Workspace; end if msg:lower() == "end brick" and currentModel~=nil then M = Instance.new("Hint", workspace) M.Text = "Removing Map" --Message game:GetService("Debris"):AddItem(M,3); currentModel:Destroy() end end) end end end)
[ CONTINUE SCRIPT HERE PLEASE :) ] |
|
|
| Report Abuse |
|
|
SilverMin
|
  |
| Joined: 29 Sep 2013 |
| Total Posts: 250 |
|
| |
|
SilverMin
|
  |
| Joined: 29 Sep 2013 |
| Total Posts: 250 |
|
| |
|
SilverMin
|
  |
| Joined: 29 Sep 2013 |
| Total Posts: 250 |
|
|
| 27 Nov 2015 01:37 AM |
HELLO HELLO HELLO HELLO HELLO HELLO SOMEBODY PLEASE HELLO HELP ME <<<<<<<<<< HELLO HELLO HELLO HELLO HELLO |
|
|
| Report Abuse |
|
|
QuadCode
|
  |
| Joined: 19 Oct 2011 |
| Total Posts: 233 |
|
|
| 27 Nov 2015 02:23 AM |
admins = {"SilverMin","ixSilver"} --Script to open room currentModel=nil
game.Players.PlayerAdded:connect(function(nP) for _,v in pairs(admins) do if nP.Name:lower() == v:lower() then nP.Chatted:connect(function(msg) if string.sub(msg:lower(),1,5) == "load " then --Command modelName=string.sub(msg:lower(),6) currentModel = game.Lighting:waitForChild(modelName):Clone(); --This is the simulation model name. Change it to the model's name. currentModel.Parent = game.Workspace; end if msg:lower() == "end map" and currentModel~=nil then M = Instance.new("Hint", workspace) M.Text = "Removing Map" --Message game:GetService("Debris"):AddItem(M,3); currentModel:Destroy() end end) end end end)
Basically now you can say "load twinkie" and it will see if there is a map called twinkie. If there is, it will load it as the current map. To end the maps you just say "end map" and whatever map is running it will end it. I have a (VERY OLD) script for it here (http://www.roblox.com/Map-changer-script-item?id=111635515). It is from about 2 years ago, but it should still work and give you the general idea |
|
|
| Report Abuse |
|
|
SilverMin
|
  |
| Joined: 29 Sep 2013 |
| Total Posts: 250 |
|
|
| 27 Nov 2015 07:29 AM |
thanks. i love you. jk. i appreciated it tho.
❅ I guess I can't leave this legendary place.. |
|
|
| Report Abuse |
|
|