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: GetRankInGroup help please

Previous Thread :: Next Thread 
LordOfTheAtoms is not online. LordOfTheAtoms
Joined: 22 Jul 2012
Total Posts: 4030
22 Dec 2013 05:37 AM
function enter(newPlayer)
if newPlayer:GetRankInGroup(852023)>= 70 then
else
newPlayer:Kick()
wait(3)
end
end
I'm only wanting those people with the rank above LTG to enter, those below get kicked.
Report Abuse
Scriptury is not online. Scriptury
Joined: 21 Aug 2013
Total Posts: 220
22 Dec 2013 05:38 AM
You need to check the data type returned by the GetRankInGroup method.
Report Abuse
LordOfTheAtoms is not online. LordOfTheAtoms
Joined: 22 Jul 2012
Total Posts: 4030
22 Dec 2013 05:38 AM
What do you mean, exactly?
Report Abuse
Scriptury is not online. Scriptury
Joined: 21 Aug 2013
Total Posts: 220
22 Dec 2013 05:40 AM
game.Players.PlayerAdded:connect(function(player)
if Player:GetRankInGroup(852023) <= LTG_RANK then
player:Kick()
end
end)
Report Abuse
LordOfTheAtoms is not online. LordOfTheAtoms
Joined: 22 Jul 2012
Total Posts: 4030
22 Dec 2013 05:41 AM
Oh stupid me I got > greater than mixed in with < less than
Also doesn't Player need to be player?
Report Abuse
Scriptury is not online. Scriptury
Joined: 21 Aug 2013
Total Posts: 220
22 Dec 2013 05:44 AM
Yes, typo sorry! :P
Report Abuse
Vaporation is not online. Vaporation
Joined: 08 Jun 2011
Total Posts: 1397
22 Dec 2013 05:45 AM
game.Players.PlayerAdded:connect(function(player)
if player:GetRankInGroup(852023) <= 70 then
player:Kick()
end
end)
Report Abuse
Scriptury is not online. Scriptury
Joined: 21 Aug 2013
Total Posts: 220
22 Dec 2013 05:49 AM
Little late.
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