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: Random Spawn

Previous Thread :: Next Thread 
shadowking123456789 is not online. shadowking123456789
Joined: 10 Aug 2009
Total Posts: 18
13 Aug 2012 11:42 AM
How do i get two teams have two spawn locatons each of the teams are randomly generated after one is wiped out and they all go to another spectating location. (after they die )

i need hel wit h this because i have little ot no programming experience
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
13 Aug 2012 11:43 AM
i dont understand
Report Abuse
Blenderman9000 is not online. Blenderman9000
Joined: 30 Nov 2011
Total Posts: 163
13 Aug 2012 11:59 AM
If the spawns are the same teams it will spawn in a random spawn already. its built in :)
Report Abuse
iiXNiNjAXii is not online. iiXNiNjAXii
Joined: 05 Mar 2012
Total Posts: 143
13 Aug 2012 11:59 AM
I suppose that he's saying that he basically wants a script for a game that randomly puts players into two teams, and it has a lobby.
Look here: http://wiki.roblox.com/index.php/Scripting#Math
Since you have no scripting experience whatsoever (I can tell, sorry), then I would explain it this way:
You need to make a script that waits for 2 (or whatever) people to come into the game. After however many players are in the game, they are randomly put into two teams. Before and After each round, there's a lobby where every player ends up (without a team).

Again, this is all assuming that you mean what I've said above. You need to construct the script like this:
(This is NOT programming, you'll have to figure it out on your own because I don't do other people's work)
Waits for - players to join.
After - players are in game, randomly generates math to put them into two teams.
Starts game
After game, players return to lobby team-less.

I would suggest looking at an uncopylocked version of Daxter33's "Paintball" game.
Here's the link: http://www.roblox.com/Paintball-Uncopylocked-place?id=72961349
There's a script somewhere in there that basically does what you want, except I'm not quite sure if they generate teams randomly.


So, look at the wiki article to learn about math, and figure out how to program what I said, and you'll have your script!
Report Abuse
iiXNiNjAXii is not online. iiXNiNjAXii
Joined: 05 Mar 2012
Total Posts: 143
13 Aug 2012 12:00 PM
@Blender, I'm pretty sure he means to randomly generate two teams.
Report Abuse
shadowking123456789 is not online. shadowking123456789
Joined: 10 Aug 2009
Total Posts: 18
13 Aug 2012 12:37 PM
Thank you very much!!!!!!
Report Abuse
iiXNiNjAXii is not online. iiXNiNjAXii
Joined: 05 Mar 2012
Total Posts: 143
13 Aug 2012 12:44 PM
No prob, glad to help :)
Report Abuse
shadowking123456789 is not online. shadowking123456789
Joined: 10 Aug 2009
Total Posts: 18
13 Aug 2012 02:01 PM
Do you know a good place ot learn lua that is not the wiki?
Report Abuse
iiXNiNjAXii is not online. iiXNiNjAXii
Joined: 05 Mar 2012
Total Posts: 143
13 Aug 2012 02:17 PM
OH YES!
There's a group called "LuaLearners" and they have a website. JOIN THEM!
Believe me, you'll become a whiz.
Report Abuse
shadowking123456789 is not online. shadowking123456789
Joined: 10 Aug 2009
Total Posts: 18
14 Aug 2012 10:51 AM
I dont know how i can thank you enough :P
Report Abuse
iiXNiNjAXii is not online. iiXNiNjAXii
Joined: 05 Mar 2012
Total Posts: 143
14 Aug 2012 11:22 AM
It's okai, I'm glad to help
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