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: Whats wrong with my script?

Previous Thread :: Next Thread 
dude9er9er is not online. dude9er9er
Joined: 30 Aug 2008
Total Posts: 2131
15 Jan 2012 12:25 AM
function onEnter(newPlayer)
if (newPlayer:IsInGroup(http://www.roblox.com/Groups/group.aspx?gid=463126)then
newPlayer.TeamColor = game.Teams["Munitions Inc."].BrightGreen
end
I was expection after I put in for the Team color "Bright green" that anyone in my group Munitions Inc.
(http://www.roblox.com/Groups/group.aspx?gid=463126)
the script would allow them to be on the Bright green team, "Munitions Inc", but when I tried it it sill makes me be on the other team, "raiders
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
15 Jan 2012 12:52 AM
function onEnter(newPlayer)
if newPlayer:IsInGroup(463126) then
newPlayer.TeamColor = BrickColor.new("Bright green")--Check if capitalize ornot
end
end
game.Players.PlayerAdded:connect(onEnter)
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