| |
|
|
| 05 Mar 2012 04:45 PM |
| game.Players.player.team.TEAMNAME ? |
|
|
| Report Abuse |
|
|
grimm343
|
  |
| Joined: 18 Sep 2008 |
| Total Posts: 2796 |
|
|
| 05 Mar 2012 04:45 PM |
if game.Players.sonichedgie.TeamColor == game.Teams["Teamname"].TeamColor then --st00f end |
|
|
| Report Abuse |
|
|
|
| 05 Mar 2012 04:49 PM |
| Not a specific player. Any player thats on that team. |
|
|
| Report Abuse |
|
|
07lchris
|
  |
| Joined: 28 Feb 2010 |
| Total Posts: 1603 |
|
|
| 05 Mar 2012 04:59 PM |
InTeam = {} -- Table with players' names in Bright red team TeamColor = "Bright red"
for i,v in pairs(game.Players:GetChildren()) do if v.TeamColor == TeamColor then table.insert(InTeam, v.Name) end end |
|
|
| Report Abuse |
|
|
grimm343
|
  |
| Joined: 18 Sep 2008 |
| Total Posts: 2796 |
|
|
| 05 Mar 2012 05:13 PM |
Or..
InTeam = {}
function FPiT(tname) InTeam = {} for _,v in pairs(game.Players:GetPlayers()) do if v.TeamColor == game.Teams[tname].TeamColor then table.insert(InTeam,v.Name) end end end
With this script, you can call the function to work with any team name. You can call it by using...
FPiT("This is an example team name") |
|
|
| Report Abuse |
|
|
|
| 05 Mar 2012 07:50 PM |
| here,s a challenge, how do you make a team changer gui that when it,s equal, when you press it you wont be able to change, huh? |
|
|
| Report Abuse |
|
|