badfitz99
|
  |
| Joined: 01 May 2010 |
| Total Posts: 5854 |
|
|
| 07 Jun 2014 04:41 AM |
local plrs = game.Players:GetPlayers()
for _, v in pairs(plrs) do if v.TeamColor == BrickColor.new("Bright red") then local re = v:FindFirstChild("leaderstats") if re == true then script.Parent.R.Value = re.KOs.Value end elseif v.TeamColor == BrickColor.new("Bright blue") then local bl = v:FindFirstChild("leaderstats") if bl == true then script.Parent.B.Value = bl.KOs.Value end end end
doesn't change the number values
'I am the greatest script in the realm. You can only hope to be as powerful of a script as I am, processing the world, bit by bit.' - Oysi 2014 |
|
|
| Report Abuse |
|
|
|
| 07 Jun 2014 04:44 AM |
local plrs = game.Players:GetPlayers()
for _, v in pairs(plrs) do if v.TeamColor == BrickColor.new("Bright red") then local re = v:FindFirstChild("leaderstats") if re then script.Parent.R.Value = re.KOs.Value end elseif v.TeamColor == BrickColor.new("Bright blue") then local bl = v:FindFirstChild("leaderstats") if bl then script.Parent.B.Value = bl.KOs.Value end end end
~The herp lerped a derp~ |
|
|
| Report Abuse |
|
|
badfitz99
|
  |
| Joined: 01 May 2010 |
| Total Posts: 5854 |
|
|
| 07 Jun 2014 04:53 AM |
Still doesn't change the values
'I am the greatest script in the realm. You can only hope to be as powerful of a script as I am, processing the world, bit by bit.' - Oysi 2014 |
|
|
| Report Abuse |
|
|
badfitz99
|
  |
| Joined: 01 May 2010 |
| Total Posts: 5854 |
|
|
| 07 Jun 2014 05:40 AM |
b1
'I am the greatest script in the realm. You can only hope to be as powerful of a script as I am, processing the world, bit by bit.' - Oysi 2014 |
|
|
| Report Abuse |
|
|
magoo8
|
  |
| Joined: 25 Apr 2009 |
| Total Posts: 1122 |
|
|
| 07 Jun 2014 05:44 AM |
| What exactly are you trying to do? |
|
|
| Report Abuse |
|
|
|
| 07 Jun 2014 05:47 AM |
any output and if you're running it once the server starts then it obviously won't work. |
|
|
| Report Abuse |
|
|
badfitz99
|
  |
| Joined: 01 May 2010 |
| Total Posts: 5854 |
|
|
| 07 Jun 2014 07:15 AM |
@mag
get KO's of each team and put the total into a number value
'I am the greatest script in the realm. You can only hope to be as powerful of a script as I am, processing the world, bit by bit.' - Oysi 2014 |
|
|
| Report Abuse |
|
|
badfitz99
|
  |
| Joined: 01 May 2010 |
| Total Posts: 5854 |
|
|
| 07 Jun 2014 07:17 AM |
I fixed it, I added a while wait(0.01) do loop onto the in pairs loop, thanks for the help
'I am the greatest script in the realm. You can only hope to be as powerful of a script as I am, processing the world, bit by bit.' - Oysi 2014 |
|
|
| Report Abuse |
|
|