So far I have this:
local ToolFolder = script:WaitForChild("ToolFolder")
local tools = {""}
local groups = {
{Group = 0, Rank = 0}
}
game.Players.PlayerAdded:connect(function(Player)
for i = 1, #groups do
if Player:GetRankInGroup(groups[i]["Group"]) >= groups[i]["Rank"] then
for i = 1, #tools do
if ToolFolder:FindFirstChild(tools[i]) then
local Cloned = ToolFolder:FindFirstChild(tools[i]):Clone()
Cloned.Parent = game:GetService("StarterPack")
wait(1)
local newCloned = game:GetService("StarterPack"):WaitForChild(tools[i]):Clone()
newCloned.Parent = Player.Backpack
end
end
end
end
end)
if ToolFolder ~= nil then
ToolFolder.Parent = game:GetService("ReplicatedStorage")
end
But, I need to add the team part please - If anyone can help
