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 » Scripting Helpers
Home Search
 

Re: TeamColor

Previous Thread :: Next Thread 
itunes89 is not online. itunes89
Joined: 19 Jan 2011
Total Posts: 1957
04 Feb 2012 04:33 PM
    function changeTeam()
        print("ran")
        for i,v in pairs(game.Players:GetChildren()) do
            v.TeamColor = BrickColor.new(24)
            print(v.TeamColor)
        end
    end

This is apart of a main. Okay the output is printing the right color, but the persons team color will not change.
Report Abuse
itunes89 is not online. itunes89
Joined: 19 Jan 2011
Total Posts: 1957
04 Feb 2012 04:39 PM
please anyone.

~~Itunes89 Teacher, Programmer, Friend
Report Abuse
TwoBoo is not online. TwoBoo
Joined: 08 Feb 2011
Total Posts: 10790
04 Feb 2012 04:39 PM
Try changing = to ==
Report Abuse
MrgamesNwatch is not online. MrgamesNwatch
Joined: 02 Feb 2009
Total Posts: 7729
04 Feb 2012 04:40 PM
i don't see anything wrong, so i just rewrote it.

function changeTeam()
print("changing team...")
for i,v in pairs(game.Players:GetPlayers()) do
v.TeamColor = BrickColor.new("Bright Yellow")
print(v.TeamColor)
end
end

~I script Awesome sauce to go with my spaghetti code
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
04 Feb 2012 04:40 PM
> Try changing = to ==

What good would that do?
Report Abuse
TwoBoo is not online. TwoBoo
Joined: 08 Feb 2011
Total Posts: 10790
04 Feb 2012 04:42 PM
@King
Lol, that fixes my problems with if statements.
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
04 Feb 2012 04:43 PM
But this isn't an if statement...
Report Abuse
TwoBoo is not online. TwoBoo
Joined: 08 Feb 2011
Total Posts: 10790
04 Feb 2012 04:46 PM
Yes I know that.
Report Abuse
itunes89 is not online. itunes89
Joined: 19 Jan 2011
Total Posts: 1957
04 Feb 2012 04:51 PM
it would break it.

~~Itunes89 Teacher, Programmer, Friend
Report Abuse
NeonBlox is not online. NeonBlox
Joined: 19 Oct 2008
Total Posts: 1462
04 Feb 2012 04:52 PM
Just for the sake of asking, did you call the function?
Report Abuse
itunes89 is not online. itunes89
Joined: 19 Jan 2011
Total Posts: 1957
04 Feb 2012 04:54 PM
it is still broke. Why...

~~Itunes89 Teacher, Programmer, Friend
Report Abuse
itunes89 is not online. itunes89
Joined: 19 Jan 2011
Total Posts: 1957
04 Feb 2012 04:55 PM
@NeonBlox Of course.

Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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