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

How do I make group rank tools?

Asked by 7 years ago

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

Log in to vote
0
Answered by 7 years ago

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! :)

0
Thank you endor I'll try it out savagelife3hunnah -43 — 7y
0
Oh and btw endor I know to put the tool in the lighting but where do I place the script??? savagelife3hunnah -43 — 7y
0
Anywhere KinqAustinn 293 — 7y
0
Use ServerStorage instead; much safer and it doesn't replicate to the client. :| TheeDeathCaster 2368 — 7y
0
Thank you guys savagelife3hunnah -43 — 7y
Ad

Answer this question