loop through all players, and depending on their team color, give them corresponding weapons
local function isRedORBlue(plr)
if plr.TeamColor == BrickColor.new("Bright red") then
return "red"
elseif plr.TeamColor == BrickColor.new("Bright blue") then
return "blue"
end
end
for i, v in pairs(game.Players:GetPlayers()) do
if isRedORBlue(v) == "red" then
redTool:Clone().Parent = v.Backpack
elseif isRedORblue(v) == "blue" then
blueTool:Clone().Parent = v.Backpack
end
end |