I need help for my script I would like it to be for team color and add multiple tool like gun and all that to it can I have you suggestion ?
game:GetService("Players").PlayerAdded:Connect(function(plr)
local rank = plr:GetRankInGroup(4207836)
-- You can also say: plr.GetRankInGroup(plr, 4207836) . The above line is syntax sugar for plr.GetRankInGroup(plr, 4207836)
if rank >= 100 then
-- the > was behind the =, it's >= not =>
if plr.TeamColor == BrickColor.new("Really black") then
-- BrickColor constructor
for _, item in pairs(game:GetService("ReplicatedStorage"):GetChildren()) do
-- Iterate through the children of replicatedstorage
if item.Name == "X26" or item.Name == "Handcuffs" then
-- if name is x26 or handcuffs
item:Clone().Parent = plr.Backpack
item:Clone().Parent = plr.StarterGear
-- Create clones of the item, clone to backpack and starter gear. StarterGear
cloned the item to the backpack when the humanoid dies.
end
end
end
end
end)
