awiton
|
  |
| Joined: 27 Apr 2012 |
| Total Posts: 2656 |
|
|
| 30 Apr 2016 11:26 AM |
lol = 12 while lol > 0 do wait(1) script.Parent.Text = "Choosing a boat." lol = lol - 1 wait(1) script.Parent.Text = "Choosing a boat.." lol = lol - 1 wait(1) script.Parent.Text = "Choosing a boat..." lol = lol - 1 if lol == 0 then local children = game.Lighting:GetChildren() for i = 1, #children do script.Parent.Text = "Boat picked: ".. children[i].Name game.Workspace.Tada:Play() wait(2) local FG = game.Players:GetChildren() for i = 1, #FG do FG[i].Character.Torso.Position = Vector3.new(-6512.2,math.random(24,32), 2807) end local GF = game.Players:GetChildren() for i = 1, #GF do GF[i].Character.Torso.Position = Vector3.new(539.802,math.random(24,32), -729.742) end
local m = Instance.new("Message") m.Text = "Get ready..." m.Parent = game.Workspace wait(0.5) local f = children[i]:Clone() f.Parent = game.Workspace
m.Text = "Fight." wait(0.5) m:remove()
end end end
================================================================================================================================================================== So when lol = 0 players from each of 2 teams are meant to go to a location of their own base. But how can i make it so that the 'FG' sends the players ONLY FROM THE "Bright Red Team" ,,,,,,, and the 'GF' ONLY FROM THE "Bright Blue Team"?
|
|
|
| Report Abuse |
|
awiton
|
  |
| Joined: 27 Apr 2012 |
| Total Posts: 2656 |
|
| |
awiton
|
  |
| Joined: 27 Apr 2012 |
| Total Posts: 2656 |
|
| |
|
| 30 Apr 2016 12:32 PM |
While looping through the players put
if FG[i].TeamColor == "Bright Red" then ... end |
|
|
| Report Abuse |
|
awiton
|
  |
| Joined: 27 Apr 2012 |
| Total Posts: 2656 |
|
|
| 30 Apr 2016 12:39 PM |
| But what if he is not "Bright Red" |
|
|
| Report Abuse |
|