Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

How would I proceed in making a tool that only people above a certain rank in a group could have?

Asked by 8 years ago

I would try to type in everyone's name that is above said rank, but that sounds a bit tedious. Any help?

1 answer

Log in to vote
0
Answered by 8 years ago
local player = game.Players.LocalPlayer
repeat wait() until player.Character
local groupid = 0 --group id
local ranknum = 0 -- rank number required

if player:GetRankInGroup(groupid) == ranknum then
local tool = game.Lighting.Tool:Clone()
tool.Parent = player.Backpack
end

Ad

Answer this question