|
| 21 Nov 2012 01:29 PM |
I've been away from Lua for awhile so I need help with this simple visible script that I made that makes an Admin Command GUI appear if they are an HR in a group I'm in. Admin = p:GetRoleInGroup(I'm not saying the group id) == 255,254,253,252,66,65,64 game.Workspace.CharacterAdded:connect(function(p) if Admin == true then game.Players.localplayer.PlayerGui.AdminGui.Frame.Visible = true end end)
|
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
crouton04
|
  |
| Joined: 07 Jul 2010 |
| Total Posts: 4459 |
|
|
| 21 Nov 2012 03:51 PM |
player = put the parents here.. p = player:GetRankInGroup() if p == 255 then --code elseif p == ... then --code elseif p == .. then --code else --code end |
|
|
| Report Abuse |
|
|
|
| 21 Nov 2012 05:13 PM |
Could you make that fit with my script? Couldn't I do if p == "255,254,253,252,65,43" then instead of
if p == 255 then --code elseif p == ... then --code elseif p == .. then --code else --code |
|
|
| Report Abuse |
|
|
icanxlr8
|
  |
| Joined: 25 Feb 2009 |
| Total Posts: 3686 |
|
|
| 21 Nov 2012 05:17 PM |
| I'm not sure :GetRankInGroup() exists. If it did, I've got some updating to do. :3 |
|
|
| Report Abuse |
|
|
nrscsy
|
  |
| Joined: 09 Nov 2012 |
| Total Posts: 465 |
|
|
| 21 Nov 2012 05:17 PM |
| if p == 255 or 254 or 253 or 252 or 65 or 43 then |
|
|
| Report Abuse |
|
|
crouton04
|
  |
| Joined: 07 Jul 2010 |
| Total Posts: 4459 |
|
|
| 21 Nov 2012 05:18 PM |
Put them in a table..
ranks = {255, 254, 253, 252, 65, 43}
blahshadfbkalda
if p == ranks then asdfdsfdfg fd g fdg df
g df gdf gad g d fgdfgdfgfdgfdgdfgfdg |
|
|
| Report Abuse |
|
|
crouton04
|
  |
| Joined: 07 Jul 2010 |
| Total Posts: 4459 |
|
|
| 21 Nov 2012 05:55 PM |
| getrankingroup exists it gets number get roleingroup gets name of whatevah |
|
|
| Report Abuse |
|
|