|
| 16 Jun 2014 10:02 PM |
how can i get a players team? function onClicked(playerWhoClicked) script.Parent.Parent.Name = "Capturing..." wait(5) --FIND HIS TEAM end script.Parent.ClickDetector.MouseClick:connect(onClicked) |
|
|
| Report Abuse |
|
|
| 16 Jun 2014 10:03 PM |
playerWhoClicked.TeamColor
and to get the team name
function GetName(teamcolor) for I,v in pairs(game.Teams:children()) do if v.TeamColor == teamcolor then return v.Name end end return false end
print(GetName(playerWhoClicked.TeamColor)) |
|
|
| Report Abuse |
|