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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Rank for admin.

Previous Thread :: Next Thread 
Lem0nzz is not online. Lem0nzz
Joined: 18 Jul 2011
Total Posts: 926
01 Apr 2014 05:50 AM
So I've been hearing this, and It's pretty confusing but I think it's amazing. What if you could have it so if you were in a group, it'd tell you your rank? Well there's alot of scripts like that, but here's the one that noone understands.. How would you make a script, that inserted a value into the ranks that had the name set? Like " If Game.StarterGUI.GUI.Frame.Textlabel.Text == then ", but forget that. It's an example of finding the certain text you want for a GUI. What if you could do this.

1. What if a script could connect to the rank, that your Group ID prints for the player?
2. What if it could automatically paste them into the admin list, if they are that rank? Kind of like "CheckPlayers", or something like that. If that works, then it'd honestly blow my mind.
Report Abuse
Stefan631 is not online. Stefan631
Joined: 23 Dec 2010
Total Posts: 1350
01 Apr 2014 06:18 AM
groupid = #####
grouprank = ###
game.Players.PlayerAdded:connect(function(p)
coroutine.resume(coroutine.create(function()
if p:IsInGroup(groupid) then
if p:GetRankInGroup(groupid) >= grouprank then
table.insert(admins, v.Name)
end
end
end))
end)
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
01 Apr 2014 11:02 AM
If your talking about kohls...
GROUPID = 123456789 --The group Id
game.Players.PlayerAdded:connect(function(p) --Connect when player enters
RankNumber = p:GetRankInGroup(GROUPID) --Returns rank number
if RankNumber > 0 then --If statement to check rank number
--If you don't understand the rank number, it is a number between 0, guest, and 255, owner. Which is set by the owner
table.insert(Administrators, p.Name) --It is Administrators right? The table?
end --End if statement
end) --End event
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