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: Broken Teaming Script

Previous Thread :: Next Thread 
ninjasamuraiux is not online. ninjasamuraiux
Joined: 23 Aug 2011
Total Posts: 5405
06 Jan 2014 08:22 PM
--parent is the workspace
--dont complain about the inefficiency *cough* cntkillme

ir = game.Teams:findFirstChild("Imperial Reign")
raid = game.Teams:findFirstChld("Raiders")
ally = game.Teams:findFirstChild("Ally")
emperor = game.Teams:findFirstChild("Imperator")

local allies = {790290,430660,896368,965014}

function playerAdded(p)
if p:IsInGroup(990194) then
p.TeamColor = ir.TeamColor
else
p.TeamColor = raid.TeamColor
end
if p:GetRankInGroup(990194) == 255 then
p.TeamColor = emperor.TeamColor
end
for i=1,#allies do
if p:GetRankInGroup(990194) == 0 and p:IsInGroup(allies[i]) then
p.TeamColor = ally.TeamColor
end
end
end

game.Players.PlayerAdded:connect(playerAdded)
Report Abuse
ninjasamuraiux is not online. ninjasamuraiux
Joined: 23 Aug 2011
Total Posts: 5405
06 Jan 2014 08:32 PM
Please help
Report Abuse
ninjasamuraiux is not online. ninjasamuraiux
Joined: 23 Aug 2011
Total Posts: 5405
06 Jan 2014 08:39 PM
...
Report Abuse
ninjasamuraiux is not online. ninjasamuraiux
Joined: 23 Aug 2011
Total Posts: 5405
06 Jan 2014 08:43 PM
No one?
Report Abuse
Jazzyforcefield is not online. Jazzyforcefield
Joined: 12 Jan 2010
Total Posts: 18838
06 Jan 2014 08:49 PM
if p:GetRankInGroup(990194) == 0 and p:IsInGroup(allies[i]) then

I sense something wrong with using this number twice.


~If you do that, I'll take out my stick and poke you
Report Abuse
ninjasamuraiux is not online. ninjasamuraiux
Joined: 23 Aug 2011
Total Posts: 5405
06 Jan 2014 10:28 PM
Which number?
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