Lem0nzz
|
  |
| Joined: 18 Jul 2011 |
| Total Posts: 926 |
|
|
| 01 Apr 2014 05:50 AM |
So I've been hearing this, and It's pretty confusing but I think it's amazing. What if you could have it so if you were in a group, it'd tell you your rank? Well there's alot of scripts like that, but here's the one that noone understands.. How would you make a script, that inserted a value into the ranks that had the name set? Like " If Game.StarterGUI.GUI.Frame.Textlabel.Text == then ", but forget that. It's an example of finding the certain text you want for a GUI. What if you could do this.
1. What if a script could connect to the rank, that your Group ID prints for the player? 2. What if it could automatically paste them into the admin list, if they are that rank? Kind of like "CheckPlayers", or something like that. If that works, then it'd honestly blow my mind. |
|
|
| Report Abuse |
|
|
Stefan631
|
  |
| Joined: 23 Dec 2010 |
| Total Posts: 1350 |
|
|
| 01 Apr 2014 06:18 AM |
groupid = ##### grouprank = ### game.Players.PlayerAdded:connect(function(p) coroutine.resume(coroutine.create(function() if p:IsInGroup(groupid) then if p:GetRankInGroup(groupid) >= grouprank then table.insert(admins, v.Name) end end end)) end)
|
|
|
| Report Abuse |
|
|
|
| 01 Apr 2014 11:02 AM |
If your talking about kohls... GROUPID = 123456789 --The group Id game.Players.PlayerAdded:connect(function(p) --Connect when player enters RankNumber = p:GetRankInGroup(GROUPID) --Returns rank number if RankNumber > 0 then --If statement to check rank number --If you don't understand the rank number, it is a number between 0, guest, and 255, owner. Which is set by the owner table.insert(Administrators, p.Name) --It is Administrators right? The table? end --End if statement end) --End event |
|
|
| Report Abuse |
|
|