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: Group Rank Script

Previous Thread :: Next Thread 
techmasterjohn is not online. techmasterjohn
Joined: 05 Feb 2013
Total Posts: 99
21 Nov 2013 10:15 AM
How can I make it so that a script where it finds the players rank in a certain group, and then uses that code to figure out what team in-game to put them in. I have a script but it only does it by name and for the amount of people I need it to work for...I can't do it by name.
Report Abuse
techmasterjohn is not online. techmasterjohn
Joined: 05 Feb 2013
Total Posts: 99
21 Nov 2013 10:25 AM
Bump
Report Abuse
einsteinK is not online. einsteinK
Joined: 22 May 2011
Total Posts: 1015
21 Nov 2013 10:26 AM

local ID = 12345
function Join(player)
local rank = player:GetGroupRank(ID)
if rank == 255 then
print("He's owner")
elseif rank == 0 then
print("He's no member") then
else
print("He's",player:GetGroupRole(ID))
end
end

You can do the teaming I guess
Report Abuse
Kasumo is not online. Kasumo
Joined: 22 Mar 2013
Total Posts: 2467
21 Nov 2013 10:57 AM
game.Players.PlayerAdded:connect(function(player)
repeat wait() until player ~= nil
if player:GetRankInGroup(GROUP ID HERE) == (RANK NUMBER) then
player.TeamColor = BrickColor.new("TEAM COLOR")
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