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 » Scripters
Home Search
 

Re: I require your help.

Previous Thread :: Next Thread 
awiton is not online. 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 is not online. awiton
Joined: 27 Apr 2012
Total Posts: 2656
30 Apr 2016 11:38 AM
help
Report Abuse
awiton is not online. awiton
Joined: 27 Apr 2012
Total Posts: 2656
30 Apr 2016 12:28 PM
bump
Report Abuse
FrostBiteFreshy is not online. FrostBiteFreshy
Joined: 10 Mar 2013
Total Posts: 263
30 Apr 2016 12:32 PM
While looping through the players put

if FG[i].TeamColor == "Bright Red" then
...
end
Report Abuse
awiton is not online. awiton
Joined: 27 Apr 2012
Total Posts: 2656
30 Apr 2016 12:39 PM
But what if he is not "Bright Red"
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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