|
| 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 |
|
|
| |
|
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
|
  |
| 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 |
|
|