generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Is this correct, need help!

Previous Thread :: Next Thread 
PowerPistons is online. PowerPistons
Joined: 16 Jul 2012
Total Posts: 3091
12 Mar 2015 09:34 PM
So im making a GUI that displays the TOTAL amount of a teams kills,
Im wondering if the code is correct..

while wait(0.33) do
for index, child in pairs (game.Players:getChildren()) do
if child.TeamColor==BrickColor.new("Bright green") then
if child:FindFirstChild("leaderstats") then
if child.leaderstats:FindFirstChild("kills") then
local teamG = 0
teamG = teamG + child.leaderstats.kills.Value
script.Parent.GreenTeam.TextBox.Text = ""..teamG..""
wait()
teamG = teamG - child.leaderstats.kills.Value
end
end
elseif child.TeamColor==BrickColor.new("Brick yellow") then
if child:FindFirstChild("leaderstats") then
if child.leaderstats:FindFirstChild("kills") then
local teamD = 0
teamD = teamD + child.leaderstats.kills.Value
script.Parent.DesertTeam.TextBox.Text = ""..teamD..""
wait()
teamD = teamD - child.leaderstats.kills.Value
end
end
end
end
end
Report Abuse
haydebug2003 is not online. haydebug2003
Joined: 21 Jan 2012
Total Posts: 5302
12 Mar 2015 09:36 PM
Thats a bit to complex for the thing you are trying to do.


[Haydebug2003] [LMaDer]
Report Abuse
PowerPistons is online. PowerPistons
Joined: 16 Jul 2012
Total Posts: 3091
12 Mar 2015 09:37 PM
Well, do you know how to sum it up?
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image