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: How would one do this?

Previous Thread :: Next Thread 
Alexrocksdude is not online. Alexrocksdude
Joined: 19 Jan 2011
Total Posts: 3828
25 Aug 2013 02:06 PM
I want people in a certain group over the rank #13 to be able to use these commands, how do I do that? They are meant for Kohl's Admin, but I've edited them a bit. I want them to be separate from that.


if msg:lower():sub(1,5) == "mute " then -- custom command
local plyer = GetPlr(plr, msg:lower():sub(6))
for i=1, #plyer do
if plyer[i]:FindFirstChild("Muted") ~= nil then
plyer[i].Muted.Value = true
end
end
end

if msg:lower():sub(1,7) == "unmute " then -- custom command
local plyer = GetPlr(plr, msg:lower():sub(8))
for i=1, #plyer do
if plyer[i]:FindFirstChild("Muted") ~= nil then
plyer[i].Muted.Value = false
end
end
end
Report Abuse
Alexrocksdude is not online. Alexrocksdude
Joined: 19 Jan 2011
Total Posts: 3828
25 Aug 2013 02:23 PM
Bump.
Report Abuse
luke111000 is not online. luke111000
Joined: 26 Apr 2009
Total Posts: 1853
25 Aug 2013 02:24 PM
if Player:GetRankInGroup(ID) >= RANK NUMBER then
--CODE
end
Report Abuse
Arkose is not online. Arkose
Joined: 26 May 2013
Total Posts: 745
25 Aug 2013 02:30 PM
Most more of the script.
Report Abuse
Arkose is not online. Arkose
Joined: 26 May 2013
Total Posts: 745
25 Aug 2013 02:32 PM
if plr:GetRankInGroup(whatever) >= number then
if msg:lower():sub(1,5) == "mute " then -- custom command
local plyer = GetPlr(plr, msg:lower():sub(6))
for i=1, #plyer do
if plyer[i]:FindFirstChild("Muted") ~= nil then
plyer[i].Muted.Value = true
end
end
end
end

if plr:GetRankInGroup(whatever) >= number then
if msg:lower():sub(1,7) == "unmute " then -- custom command
local plyer = GetPlr(plr, msg:lower():sub(8))
for i=1, #plyer do
if plyer[i]:FindFirstChild("Muted") ~= nil then
plyer[i].Muted.Value = false
end
end
end
end
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