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 » Scripters
Home Search
 

Re: Help: HOLO SCRIPT

Previous Thread :: Next Thread 
SilverMin is not online. 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 is not online. SilverMin
Joined: 29 Sep 2013
Total Posts: 250
27 Nov 2015 01:12 AM
bump
Report Abuse
SilverMin is not online. SilverMin
Joined: 29 Sep 2013
Total Posts: 250
27 Nov 2015 01:17 AM
bump 2
Report Abuse
SilverMin is not online. 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 is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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