Hey there! So this is a basic script to add it via rank in group:

local groupId = 0;
local minRankId = 0
local Folder = game.ServerStorage:WaitForChild(“Accessories”)

game.Players.PlayerAdded:Connect(function(plr)
if plr:GetRankInGroup(groupId) >= minRankId then
plr.CharacterAdded:Connect(function(char)
plr:CharacterAppearanceLoaded:Wait()
for _, accessories in pairs(Folder:GetChildren()) do
if accessory:IsA(“Accessory”) then
if accessory:FindFirstChils(“Handle”) then
for _,att in pairs(accessory.Handle:GetChildren()) do
if att:IsA(“Attatchment”) then
warn(“Attatchment Name: “ att.Name)
end
end
else 
warn(“No Handle”)
end
plr.Character:WaitForChild(“Humanoid”):AddAccessory(accessory)
else
warn(“no attatchment”)
end
end
end
end)
end)

Sorry that it’s not properly done, I made this on my phone but it should work.