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

How would i make group rank gear? [closed]

Asked by 6 years ago

I don't really have a script for this, but i don't really know how i can make a Group rank gear.

0
Use either player:GetRankInGroup(groupId) or player:GetRoleInGroup(groupId) for finding the player's role in the group Rare_tendo 3000 — 6y

Closed as Not Constructive by User#19524

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

Hi! I hope this helped you out! The code is below.

--[[
    INSTRUCTIONS

    1. Create a folder and put it in ReplicatedStorage
    2. Name the folder: GroupOnlyGear
    3. Put the gears in the folder
    4. Put this script in serverscriptservice (make sure this is a SCRIPT not a LOCALSCRIPT)
    5. Put your groupid below in the groupid variable!
    6. Put the rank name in the variable below called rankneeded!
    7. Enjoy!
--]]

local gearfolder = game.ReplicatedStorage:WaitForChild('GroupOnlyGear')
local groupid = 0
local rankneeded = 'Rank Name'
local player = game.Players.LocalPlayer
game.Players.PlayerAdded:Connect(function(plr)
    if plr:IsInGroup(groupid) and player:GetRankInGroup(groupid) == rankneeded then
        for i,v in pairs(gearfolder:GetChildren()) do
            v:Clone().Parent = plr.Backpack
            v:Clone().Parent = plr.StarterGear
        end
    end
end)
0
If this doesn't work give me a shout! ChrisThrRoblox1234 12 — 6y
0
Don't spoon feed code. User#19524 175 — 6y
Ad