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 » Scripting Helpers
Home Search
 

Re: Lobby + mapmaking + building help...lol

Previous Thread :: Next Thread 
zakkattack10 is not online. zakkattack10
Joined: 07 Jul 2008
Total Posts: 8
16 Feb 2012 06:59 PM
Well, im making a paintball game, and i have 1 map made, nothing else, i need to know how to make the lobby, the ither maps to appear, and how to pick the maps randomly. PLEASE HELP!!
Report Abuse
unholysoda is not online. unholysoda
Joined: 15 May 2010
Total Posts: 9024
16 Feb 2012 07:02 PM
http://wiki.roblox.com/index.php/Random_numbers
Just build a building and call it a lobby, and use a minigame script to eddit it into a paitball game.
Report Abuse
Rukiryo is not online. Rukiryo
Joined: 04 Sep 2009
Total Posts: 1490
16 Feb 2012 07:04 PM
This is not a place to request scripts. This is a place where you ask for a quick method to do something, or post your script and tell us where it's broken, and we fix it. Therefore, here is your appropriate answer:
Make a table with all the maps, pick a random number between 1 and the number of maps, then get that item in the table ( table[randomNumber] ) then clone it into workspace. Enjoy.
Report Abuse
Rukiryo is not online. Rukiryo
Joined: 04 Sep 2009
Total Posts: 1490
16 Feb 2012 07:04 PM
This is not a place to request scripts. This is a place where you ask for a quick method to do something, or post your script and tell us where it's broken, and we fix it. Therefore, here is your appropriate answer:
Make a table with all the maps, pick a random number between 1 and the number of maps, then get that item in the table ( table[randomNumber] ) then clone it into workspace. Enjoy.
Report Abuse
Rukiryo is not online. Rukiryo
Joined: 04 Sep 2009
Total Posts: 1490
16 Feb 2012 07:04 PM
This is not a place to request scripts. This is a place where you ask for a quick method to do something, or post your script and tell us where it's broken, and we fix it. Therefore, here is your appropriate answer:
Make a table with all the maps, pick a random number between 1 and the number of maps, then get that item in the table ( table[randomNumber] ) then clone it into workspace. Enjoy.
Report Abuse
zakkattack10 is not online. zakkattack10
Joined: 07 Jul 2008
Total Posts: 8
16 Feb 2012 07:04 PM
Thanks, i still need to know how to make it pick the maps, i plan on making 5. Also, if you are good at scripting perhaps you could to it, and i will give you credit. If not its ok, just an offer.
Report Abuse
Rukiryo is not online. Rukiryo
Joined: 04 Sep 2009
Total Posts: 1490
16 Feb 2012 07:05 PM
Sorry, ROBLOX is being slow. The post button wasnt working so I spammed it. Nice HTML there ROBLOX.
Report Abuse
zakkattack10 is not online. zakkattack10
Joined: 07 Jul 2008
Total Posts: 8
16 Feb 2012 07:08 PM
make a tbale with all the maps, thats what i dont know what to do, once i make the maps how do i like assign them (map1, 2 3, ETC.) and like how do i make them just appear in the game?
Report Abuse
unholysoda is not online. unholysoda
Joined: 15 May 2010
Total Posts: 9024
16 Feb 2012 07:09 PM
math.randomseed(tick())
while true do
g = game.Lighting.Maps:GetChildren
m = math.random(1, #g)
if m == 1 then
game.Lighting.Map1:clone().Parent = game.Workspace
wait(100)
game.Workspace.Map1:Remove()
end

This would be a very basic outline, but you could make a very good version of this kind of game using an edited minigame script.
Report Abuse
unholysoda is not online. unholysoda
Joined: 15 May 2010
Total Posts: 9024
16 Feb 2012 07:10 PM
Like i said earlier just get a minigame script and edit it to your likings,
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
16 Feb 2012 07:17 PM
math.randomseed(tick());

local maps=game.Lighting.Maps:GetChildren()
local map=maps[math.random(1,#maps)]

­<'+1 Post. Ujelly?'>
Report Abuse
zakkattack10 is not online. zakkattack10
Joined: 07 Jul 2008
Total Posts: 8
16 Feb 2012 07:19 PM
As i've said, i don't know what to change it to, i don't know how to assign maps, like map 1 and two and stuff. thats all i need to know is how to assign maps
Report Abuse
unholysoda is not online. unholysoda
Joined: 15 May 2010
Total Posts: 9024
16 Feb 2012 07:28 PM
Heres a very basic script, for what you need.

while true do
wait(5)
local m = math.random(1,1)
local player = game.Players:GetPlayers()
for i = 1, #player do
msg = Instance.new("Message")
msg.Parent = nil
if m == 1 then
msg.Parent = game.Workspace
msg.Text = "Choosing Map."
wait(1)
msg.Text = "Choosing Map.."
wait(1)
msg.Text = "Choosing Map..."
wait(1)
msg.Text = "A Map has been chosen!"
wait(3)
msg.Text = "The Map is..."
wait(3)
msg.Text = "Insert Map Name Here!"
wait(2)
msg.Text = "Insert Map Description Here!"
wait(5)
msg.Text = "The game will be starting in:"
wait(1)
msg.Text = "...3..."
wait(1)
msg.Text = "..2.."
wait(1)
msg.Text = ".1."
wait(1)
msg.Text = "Begin!"
wait(1)
player[i].Character:MoveTo(Vector3.new(-37,4.2, -479))
msg:remove()
game.Lighting.Map1:clone().Parent = game.Workspace
game.Lighting.WeaponNameHere:clone().Parent = player[i].Backpack
wait(10)
msg.Parent = game.Workspace
msg.Text = "Winner(s)!"
wait(3)
msg:remove()
game.Workspace.Map1:Remove()
end
end
end
Report Abuse
zakkattack10 is not online. zakkattack10
Joined: 07 Jul 2008
Total Posts: 8
16 Feb 2012 07:35 PM
Thanks, but what i mean is, i dont have the maps made yet but when i do how do i like save them as maps so that when in the script it says map 1 it goes to that?
Report Abuse
unholysoda is not online. unholysoda
Joined: 15 May 2010
Total Posts: 9024
16 Feb 2012 07:38 PM
Put them in lighting, then use this script to choose them.
Report Abuse
zakkattack10 is not online. zakkattack10
Joined: 07 Jul 2008
Total Posts: 8
16 Feb 2012 07:38 PM
put it in lightning?
Report Abuse
unholysoda is not online. unholysoda
Joined: 15 May 2010
Total Posts: 9024
16 Feb 2012 07:39 PM
You are using Edit mode right?
Report Abuse
zakkattack10 is not online. zakkattack10
Joined: 07 Jul 2008
Total Posts: 8
16 Feb 2012 07:40 PM
yes
Report Abuse
unholysoda is not online. unholysoda
Joined: 15 May 2010
Total Posts: 9024
16 Feb 2012 07:44 PM
Do you have explorer open?
Report Abuse
zakkattack10 is not online. zakkattack10
Joined: 07 Jul 2008
Total Posts: 8
16 Feb 2012 07:49 PM
yea
Report Abuse
unholysoda is not online. unholysoda
Joined: 15 May 2010
Total Posts: 9024
16 Feb 2012 07:52 PM
Now find "Lighting" under explorer, and copy and paste the maps in there.
I have to get off my computer now,so i wont be aboul to help you again until tommarow.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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