Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I make group rank tools?

I want to know how to make a group rank tool so that when a player spawns into my game the script checks their rank in my group and then gives them a tool/gear according to their rank.

1 answer

✓ Accepted answer

This should work:

wait(1)
local GroupTool = game.Lighting.ToolName:Clone() -- put the tool name there
local GroupId = 2825938 -- Put the group id here
local GroupRank = 255 -- put the group rank requirement 
game.Players.PlayerAdded:connect(function(Player)
    if Player:GetRankInGroup(GroupId) == GroupRank then 
        print("The player is the right rank")
    GroupTool.Parent = Player.Backpack
    end
end)

Replace GroupTool with the location and name of the tool, and GroupId with the id of the group and then GroupRank with the group requirement if this helped upvote it! :)

5 comments

0

Thank you endor I'll try it out

0

Oh and btw endor I know to put the tool in the lighting but where do I place the script???

0

Anywhere

0

Use ServerStorage instead; much safer and it doesn't replicate to the client. :|

0

Thank you guys

This discussion is preserved as it was. New answers, comments, and votes are closed.