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: GUI help

Previous Thread :: Next Thread 
blindbird17 is not online. blindbird17
Joined: 23 Jan 2012
Total Posts: 1027
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
blindbird17 is not online. blindbird17
Joined: 23 Jan 2012
Total Posts: 1027
21 Nov 2012 01:49 PM
I just need some help :(
Report Abuse
blindbird17 is not online. blindbird17
Joined: 23 Jan 2012
Total Posts: 1027
21 Nov 2012 03:00 PM
bump
Report Abuse
blindbird17 is not online. blindbird17
Joined: 23 Jan 2012
Total Posts: 1027
21 Nov 2012 03:38 PM
bump
Report Abuse
crouton04 is not online. 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
blindbird17 is not online. blindbird17
Joined: 23 Jan 2012
Total Posts: 1027
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 is not online. 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 is not online. 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 is not online. 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 is not online. 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
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