Cyls
|
  |
| Joined: 31 Aug 2008 |
| Total Posts: 166 |
|
|
| 16 Jan 2016 10:18 AM |
What's the code in order to find what team the player is on, then carry out a command.
Like
If
whatever
Then
(I'll do the rest) |
|
|
| Report Abuse |
|
|
|
| 16 Jan 2016 10:19 AM |
local team = player.TeamColor
for i,v in pairs(game.Teams:GetChildren())do if v.TeamColor == team then team = v end end
|
|
|
| Report Abuse |
|
|
|
| 16 Jan 2016 10:19 AM |
TeamColor
#code 'The Legend of Heroes Sen no Kiseki' |
|
|
| Report Abuse |
|
|
|
| 16 Jan 2016 10:28 AM |
It's best to use the code I gave you in a modual script
|
|
|
| Report Abuse |
|
|
Cyls
|
  |
| Joined: 31 Aug 2008 |
| Total Posts: 166 |
|
|
| 16 Jan 2016 10:28 AM |
| Doesn't know what "Player" is |
|
|
| Report Abuse |
|
|
|
| 16 Jan 2016 10:30 AM |
| Local player = game.Players.LocalPlayer |
|
|
| Report Abuse |
|
|