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: Help with Group Rank!

Previous Thread :: Next Thread 
Xegic is online. Xegic
Joined: 29 Jan 2016
Total Posts: 2105
29 Mar 2017 05:34 PM
Trying to make it so my group high ranks can do events as soon as they're promoted so I don't have to keep adding people to a list.

if msg == ":TDM" then
x = Instance.new("Team", game.Teams)
x.TeamColor = BrickColor.new("Bright blue")
x.Name = "Blue team"
x.AutoAssignable = false
wait(1)
game.Lighting.Sword1:clone().Parent = game.Teams["Blue team"]
wait(1)
randomisePlayers()

Appreciated!


~ Commander Xegic of TKC | "Learn, Adapt, Conquer" |
Report Abuse
QuantumNexsus is not online. QuantumNexsus
Joined: 09 Nov 2014
Total Posts: 2451
29 Mar 2017 05:37 PM
game.Player.PlayerAdded:connect(function(Player)
if Player:GetRankInGroup >= WHATEVERRANKVALUE then
-- stuff
end
end)


print(string.rep("Lit",5))
Report Abuse
Gomlsauresrex is not online. Gomlsauresrex
Joined: 25 Mar 2016
Total Posts: 3588
29 Mar 2017 05:38 PM
local groupid = groupid here

game.Players.ChildAdded:Connect(function(player)
if player:GetRankInGroup(groupid) == "NameHere" then
--do stuff
end
end)
Report Abuse
QuantumNexsus is not online. QuantumNexsus
Joined: 09 Nov 2014
Total Posts: 2451
29 Mar 2017 05:40 PM
OOPS i forgot the brackets.


print(string.rep("Lit",5))
Report Abuse
Xegic is online. Xegic
Joined: 29 Jan 2016
Total Posts: 2105
29 Mar 2017 05:41 PM
if player:GetRankInGroup(groupid) == "200" then

Would this allow ranks higher than this to still be able to do the commands?


~ Commander Xegic of TKC | "Learn, Adapt, Conquer" |
Report Abuse
QuantumNexsus is not online. QuantumNexsus
Joined: 09 Nov 2014
Total Posts: 2451
29 Mar 2017 05:42 PM
There is no need for a string btw.


print(string.rep("Lit",5))
Report Abuse
QuantumNexsus is not online. QuantumNexsus
Joined: 09 Nov 2014
Total Posts: 2451
29 Mar 2017 05:43 PM
If you want higher ranks
if Player:GetRankInGroup(id) >= 200 then


print(string.rep("Lit",5))
Report Abuse
Xegic is online. Xegic
Joined: 29 Jan 2016
Total Posts: 2105
29 Mar 2017 05:44 PM
Ah, I see. Thank you. I'll test it out now.


~ Commander Xegic of TKC | "Learn, Adapt, Conquer" |
Report Abuse
Xegic is online. Xegic
Joined: 29 Jan 2016
Total Posts: 2105
29 Mar 2017 05:45 PM
game.Player.PlayerAdded:connect(function(Player) if ############################## ## ### then for _,v in pairs(admin) do if nP.Name == v then nP.Chatted:connect(function(msg) if msg == ":TDM" then x = Instance.new("Team", game.Teams) x.TeamColor = BrickColor.new("Bright blue") x.Name = "Blue team" x.AutoAssignable = false wait(1) game.Lighting.Sword1:clone().Parent = game.Teams["Blue team"] wait(1) randomisePlayers() end end) Should this work? ~ Commander Xegic of TKC | "Learn, Adapt, Conquer" |
Report Abuse
Gomlsauresrex is not online. Gomlsauresrex
Joined: 25 Mar 2016
Total Posts: 3588
29 Mar 2017 05:45 PM
200 isn't supposed to be a string. It's supposed to be a number.

So just remove the quotation marks from 200 and it should work.

Script:

local groupid = groupid here

game.Players.ChildAdded:Connect(function(player)
if player:GetRankInGroup(groupid) >= 200 then
--do stuff
end
end)
Report Abuse
Xegic is online. Xegic
Joined: 29 Jan 2016
Total Posts: 2105
29 Mar 2017 05:45 PM
game.Player.PlayerAdded:connect(function(Player)
if Player:GetRankInGroup(id) >= NUMBERAMOUNT then
for _,v in pairs(admin) do
if nP.Name == v then
nP.Chatted:connect(function(msg)
if msg == ":TDM" then
x = Instance.new("Team", game.Teams)
x.TeamColor = BrickColor.new("Bright blue")
x.Name = "Blue team"
x.AutoAssignable = false
wait(1)
game.Lighting.Sword1:clone().Parent = game.Teams["Blue team"]
wait(1)
randomisePlayers()
end
end)


~ Commander Xegic of TKC | "Learn, Adapt, Conquer" |
Report Abuse
Xegic is online. Xegic
Joined: 29 Jan 2016
Total Posts: 2105
29 Mar 2017 05:46 PM
Excluding the previous admin thing I had there.


~ Commander Xegic of TKC | "Learn, Adapt, Conquer" |
Report Abuse
Gomlsauresrex is not online. Gomlsauresrex
Joined: 25 Mar 2016
Total Posts: 3588
29 Mar 2017 05:47 PM
:clone() is deprecated use :Clone()
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