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: Team Picker HELP!

Previous Thread :: Next Thread 
TheNextEvolution is not online. TheNextEvolution
Joined: 08 Apr 2010
Total Posts: 1624
10 Apr 2014 06:51 PM
This is suppose to make 1 person the MS and the rest Escapers can some one fix this for me?
Report Abuse
TheNextEvolution is not online. TheNextEvolution
Joined: 08 Apr 2010
Total Posts: 1624
10 Apr 2014 06:51 PM
if #player == 0 then
print("No players.")
script:remove()
return
end
Escapers = player[(#player)]
Escapers[i].TeamColor = BrickColor.new("Deep Blue")

local pickedPl = player[math.random(1, #player)]
print(pickedPl.Name)
pickedP1[i].TeamColor = BrickColor.new("Bright Red")
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
10 Apr 2014 06:54 PM
that's not whole script is it?
you never defined player
you didn't loop thru escapers or pickedPl

yknow what,nvm..

for loop it,and define "player"
Report Abuse
TheNextEvolution is not online. TheNextEvolution
Joined: 08 Apr 2010
Total Posts: 1624
10 Apr 2014 06:55 PM
Here?


local Players = game.Players

local player = Players:GetChildren()
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
10 Apr 2014 06:56 PM
print("picking teams " + (loop (players)))
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
10 Apr 2014 06:57 PM
for I,Escapers in pairs(player) do
Escapers.TeamColor = BrickColor.new("Deep Blue")
end

--then the random plr bit here
Report Abuse
TheNextEvolution is not online. TheNextEvolution
Joined: 08 Apr 2010
Total Posts: 1624
10 Apr 2014 07:01 PM
Says no players.
Report Abuse
TheNextEvolution is not online. TheNextEvolution
Joined: 08 Apr 2010
Total Posts: 1624
10 Apr 2014 07:11 PM
Bump
Report Abuse
TheNextEvolution is not online. TheNextEvolution
Joined: 08 Apr 2010
Total Posts: 1624
10 Apr 2014 07:22 PM
Bump
Report Abuse
TheNextEvolution is not online. TheNextEvolution
Joined: 08 Apr 2010
Total Posts: 1624
10 Apr 2014 10:57 PM
Bump it doesn't work can some one help me please?
Report Abuse
MrParkwizard is not online. MrParkwizard
Joined: 28 Feb 2011
Total Posts: 679
10 Apr 2014 11:03 PM
function makeTeams()
local players = game.PlayersGetPlayers()
local tick = math.random(1,#players)
for i = 1, #players do
if i == tick then
predator = players[i].Name
end
end
for i, player in pairs(game.Players:GetPlayers()) do
if player.Name ~= predator then
table.insert(blues,player.Name)
end
end
Report Abuse
TheNextEvolution is not online. TheNextEvolution
Joined: 08 Apr 2010
Total Posts: 1624
10 Apr 2014 11:08 PM
I don't see how that could work there's no team colors?
Report Abuse
TheNextEvolution is not online. TheNextEvolution
Joined: 08 Apr 2010
Total Posts: 1624
10 Apr 2014 11:22 PM
Bump
Report Abuse
TheNextEvolution is not online. TheNextEvolution
Joined: 08 Apr 2010
Total Posts: 1624
10 Apr 2014 11:35 PM
Bumpidy Bump Bump
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