|
| 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
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
| |
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 13 Aug 2012 12:00 PM |
| @Blender, I'm pretty sure he means to randomly generate two teams. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 13 Aug 2012 02:01 PM |
| Do you know a good place ot learn lua that is not the wiki? |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 14 Aug 2012 10:51 AM |
| I dont know how i can thank you enough :P |
|
|
| Report Abuse |
|
|
|
| 14 Aug 2012 11:22 AM |
| It's okai, I'm glad to help |
|
|
| Report Abuse |
|
|