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: GetRankInGroup(), Making Rank Specific Teams

Previous Thread :: Next Thread 
Italyman99 is not online. Italyman99
Joined: 18 Oct 2008
Total Posts: 5310
26 Jan 2013 03:35 PM
I'm having trouble on my map making rank specific teams. For one of these teams, I want Trainers (Certain Rank) to spawn on the trainers team. So far, I have the "SpawnLocation" which is set for team "Really Black." Inside that, I placed the following script:
function Enter(newPlayer)
if newPlayer:GetRankInGroup(679836) == 254 then
newPlayer.TeamColor=script.Parent.Value.Value
end
end


game.Players.ChildAdded:connect(Enter)

When I spawn, I'm not in the trainers group. Any help would be appreciated. Thanks, guys.
Report Abuse
Molete is not online. Molete
Joined: 12 Jan 2013
Total Posts: 39
26 Jan 2013 03:40 PM
i had trouble with that to. if you made ANOTHER script like that for another group and you are in it both, than yeah.
Report Abuse
triston220 is not online. triston220
Joined: 08 Mar 2010
Total Posts: 1861
26 Jan 2013 03:52 PM
game.Players.PlayerAdded:connect(function(Player)
If Player:GetRankInGroup(1337) == 1337 then
Player.TeamColor = BrickColor.new("Really black")
end
end)
Report Abuse
Italyman99 is not online. Italyman99
Joined: 18 Oct 2008
Total Posts: 5310
26 Jan 2013 05:33 PM
Apologies, that didn't work.
Report Abuse
Italyman99 is not online. Italyman99
Joined: 18 Oct 2008
Total Posts: 5310
27 Jan 2013 08:21 AM
Bump.
Report Abuse
triston220 is not online. triston220
Joined: 08 Mar 2010
Total Posts: 1861
27 Jan 2013 12:03 PM
game.Players.PlayerAdded:connect(function(Player)
if Player:GetRankInGroup(679836) == 254 then
Player.TeamColor = BrickColor.new("Really black")
end
end)

My if statement was capitalised.
Report Abuse
Molete is not online. Molete
Joined: 12 Jan 2013
Total Posts: 39
26 Feb 2013 07:16 PM
BUMP
>:)
Report Abuse
triston220 is not online. triston220
Joined: 08 Mar 2010
Total Posts: 1861
27 Feb 2013 02:04 PM
game.Players.PlayerAdded:connect(function(Player)
Player.Neutral = false
if Player:GetRankInGroup(679836) == 254 then
Player.TeamColor = BrickColor.new("Really black")
end
end)


~~~~Need a scripter? PM me. https://twitter.com/triston220Roblo ~~~~
Report Abuse
gamert7 is not online. gamert7
Joined: 18 Nov 2008
Total Posts: 4986
27 Feb 2013 02:34 PM
game.Players.PlayerAdded:connect(function(Player)

if Player:GetRankInGroup(32423423) == 222 then
Player.TeamColor = BrickColor.new('Really red')

elseif if Player:GetRankInGroup(32423423) == 21 then
Player.TeamColor = BrickColor.new('Really blue')

end
end
end)
Report Abuse
Italyman99 is not online. Italyman99
Joined: 18 Oct 2008
Total Posts: 5310
07 Mar 2013 12:45 PM
Thanks, guys. I'll try this..
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