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: Assistance with the team group changer

Previous Thread :: Next Thread 
macedonianelite is not online. macedonianelite
Joined: 21 Feb 2010
Total Posts: 8532
19 Mar 2013 01:44 PM
I need help, I want it so that when you join, you join the team if you are in the group, you join the team.

Is there any way for this to work?
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
19 Mar 2013 02:09 PM
Let me try :3 :

Group = GroupId

game.Players.PlayerAdded:connect(function(plr)
if plr:IsInGroup(Group) then
plr.TeamColor = BrickColor.new("TEAMCOLOR")
end
end)


Replace TEAMCOLOR with the color of the team.And the color must be exact.Even put capital letters on where it is in the color name.
Report Abuse
cart6157 is not online. cart6157
Joined: 28 Feb 2009
Total Posts: 2194
19 Mar 2013 02:11 PM
@Fedora's script

Change 'GroupId' to the Id of the group's link.
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
19 Mar 2013 02:15 PM
Yeah OP.Also do what cart said.
Report Abuse
macedonianelite is not online. macedonianelite
Joined: 21 Feb 2010
Total Posts: 8532
19 Mar 2013 02:18 PM
I'm not a rookie, I mean a scrap scripts and edit them, is there meant to be a ")" at the end?
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
19 Mar 2013 02:22 PM
Mace.No and no more questions because we told you everything.Replace GroupId with the group's link's id.And change the TEAMCOLOR to the teamcolor name to the team.It must be spellt correctly and have capital letters when it there.
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
19 Mar 2013 02:23 PM
Its a ) at the end because it ends the playeradded event.Ill say it a way you get it.Its a special function that needs a special end :O
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