dewd45
|
  |
| Joined: 08 Mar 2009 |
| Total Posts: 11180 |
|
|
| 19 Jul 2013 09:09 AM |
while true do wait(65) --time in seconds before the players are sent to location for _, player in pairs(game.Players:GetPlayers()) do if player.Character then player.Character:MoveTo(Vector3.new(89, 7.4, -57)) --set as position for players to go end end end
so i have this script and I'm trying to make it teleport different teams to different locations, but I don't know how.
#swagyolo |
|
|
| Report Abuse |
|
|
grimm343
|
  |
| Joined: 18 Sep 2008 |
| Total Posts: 2796 |
|
|
| 19 Jul 2013 09:38 AM |
| After you check to see if the Character exists, you can check the TeamColor property against the TeamColor of one team, then move the Character to that Team's location. Then, use an elseif (if you have more than two teams) to check for the next, and so-on, or (if you have two teams, or have reached your last one), you can use an else (which means 'in all other cases' and move those Players' Characters to their location(s). |
|
|
| Report Abuse |
|
|
grimm343
|
  |
| Joined: 18 Sep 2008 |
| Total Posts: 2796 |
|
|
| 19 Jul 2013 09:40 AM |
Oh, and if you're having trouble figuring out how if-elseif-else or any variation of these work, here's a wiki page: http://wiki.roblox.com/index.php/Conditional_statement |
|
|
| Report Abuse |
|
|