|
| 31 May 2014 12:25 PM |
I have a gui that labels who the king is, I have a king team and I tried this script to make the text whoever is in the king team...
script.Parent.Text = game.Teams.King:getChildren()
whats wrong?? |
|
|
| Report Abuse |
|
|
| 31 May 2014 12:27 PM |
for i,v in pairs(game.Players:GetPlayers()) do if v.TeamColor == game:GetService('Teams').King.TeamColor then if #(script.Parent.Text) >= 3 script.Parent.Text = script.Parent.Text..", "..v.Name else script.Parent.Text = v.Name end end end |
|
|
| Report Abuse |
|