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.
✓ ANSWER ACCEPTED
How do I make group rank tools?
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! :)
This discussion is preserved as it was. New answers, comments, and votes are closed.

5 comments
Thank you endor I'll try it out
Oh and btw endor I know to put the tool in the lighting but where do I place the script???
Anywhere
Use ServerStorage instead; much safer and it doesn't replicate to the client. :|
Thank you guys