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
 

Team wont change?

Previous Thread :: Next Thread 
xXLiLxJXx is not online. xXLiLxJXx
Joined: 15 Mar 2012
Total Posts: 687
18 May 2014 08:59 PM
function onPlayerEntered(player)
player.TeamColor = game.Teams["Choosing"].TeamColor
end

game.Players.PlayerAdded:connect(onPlayerEntered)
Report Abuse
RbxUtility is not online. RbxUtility
Joined: 15 May 2014
Total Posts: 138
18 May 2014 09:12 PM
If there are no errors then i don't know what the problem could be other than you are not indexing a color correctly in some bizarre way.

Can you check for errors in the output window?
Report Abuse
xXLiLxJXx is not online. xXLiLxJXx
Joined: 15 Mar 2012
Total Posts: 687
18 May 2014 09:12 PM
Bump
Report Abuse
xXLiLxJXx is not online. xXLiLxJXx
Joined: 15 Mar 2012
Total Posts: 687
18 May 2014 09:13 PM
Woh you posted that exactly when I said bump ._.
Report Abuse
Accomplishable is not online. Accomplishable
Joined: 13 Aug 2009
Total Posts: 6207
18 May 2014 09:14 PM
Didn't test this k idc

Game.Players.PlayerAdded:connect(function(Player)
if Player.TeamColor == BrickColor.new("Uhhh, name me!") then
Player.TeamColor = BrickColor.new("Oh yus. I'm named")
end
end)
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