Vazim
|
  |
| Joined: 26 Oct 2013 |
| Total Posts: 1805 |
|
|
| 09 Jan 2016 10:58 AM |
Can anyone hook me up with a simple script that locates a player's rank in a group?
|
|
|
| Report Abuse |
|
|
|
| 09 Jan 2016 11:02 AM |
p = game.players
if p:IsInGroup Then
--script
end
|
|
|
| Report Abuse |
|
|
|
| 09 Jan 2016 11:02 AM |
p = game.Players.Localplayer
if p:IsInGroup then
--Script here
end
right one ^^
|
|
|
| Report Abuse |
|
|
OzzyFin
|
  |
| Joined: 07 Jun 2011 |
| Total Posts: 3600 |
|
|
| 09 Jan 2016 11:04 AM |
| http://wiki.roblox.com/index.php?title=API:Class/Player/GetRoleInGroup |
|
|
| Report Abuse |
|
|
|
| 09 Jan 2016 11:07 AM |
if player:GetRankInGroup(group here) >0 and player:GetRankInGroup(group here) < 255 then -- >0 and <255 = member but not owner --regular member elseif player:GetRankInGroup(group here) <= 0 then --0 = not a member of the group --not a member elseif player:GetRankInGroup(group here) == 255 then --255 = group owner --owner end |
|
|
| Report Abuse |
|
|