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 » Scripters
Home Search
 

Re: HR only GUI?

Previous Thread :: Next Thread 
Quirtx is online. Quirtx
Joined: 01 Aug 2014
Total Posts: 522
13 May 2017 03:58 AM
Hello! I have a GUI that I want to be group only with the rank above 100 (<100). If you are not above it will script.Parent:Destroy()...
Help?
Report Abuse
Quirtx is online. Quirtx
Joined: 01 Aug 2014
Total Posts: 522
13 May 2017 03:59 AM
This is what I did: groupid = ####### game.Players.PlayerAdded:connect(function(plr) if plr:IsInGroup(groupid) and plr:GetRankInGroup(groupid) # ### then else script.Parent:Destroy() end end)
Report Abuse
Quirtx is online. Quirtx
Joined: 01 Aug 2014
Total Posts: 522
13 May 2017 03:59 AM
groupid = ####### game.Players.PlayerAdded:connect(function(plr) if plr:IsInGroup(groupid) and plr:GetRankInGroup(groupid) # ### then else script.Parent:Destroy() end end)
Report Abuse
Quirtx is online. Quirtx
Joined: 01 Aug 2014
Total Posts: 522
13 May 2017 04:00 AM
tags rip
Report Abuse
Disillusions is not online. Disillusions
Joined: 10 Jul 2011
Total Posts: 6365
13 May 2017 04:04 AM
Put that in the GUI in a local script.


Report Abuse
Quirtx is online. Quirtx
Joined: 01 Aug 2014
Total Posts: 522
13 May 2017 04:08 AM
Did but still not working?!?
Report Abuse
hunxrepair is online. hunxrepair
Joined: 07 Aug 2011
Total Posts: 777
13 May 2017 04:08 AM
It looks good, where does this code run though?
Report Abuse
Quirtx is online. Quirtx
Joined: 01 Aug 2014
Total Posts: 522
13 May 2017 04:09 AM
after (and plr:GetRankInGroup(groupid)) it says < 100
Report Abuse
hunxrepair is online. hunxrepair
Joined: 07 Aug 2011
Total Posts: 777
13 May 2017 04:10 AM
If you want it inside a LocalScript:


groupid = 010101010

local plr = game.Players.LocalPlayer
if plr:GetRankInGroup(groupid) < 100 then -- You don't need to check if they are in the group, since everyone who isn't has a 0 rank
script.Parent:Destroy()
end
Report Abuse
Quirtx is online. Quirtx
Joined: 01 Aug 2014
Total Posts: 522
13 May 2017 04:11 AM
Ok! Thanks will give it a go.
Report Abuse
Quirtx is online. Quirtx
Joined: 01 Aug 2014
Total Posts: 522
13 May 2017 04:14 AM
Worked! Cheers guys your the best <3
Report Abuse
Quirtx is online. Quirtx
Joined: 01 Aug 2014
Total Posts: 522
13 May 2017 04:15 AM
lol why <3???
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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