I need two different swords to be put into the player's backpacks, based on what team they are on. There is no error or warning, the script just doesn't do anything.
local RedCount = game.Teams.Red:GetPlayers()
local BlueCount = game.Teams.Blue:GetPlayers()
local RedSword = game.ServerStorage.RedSword
local BlueSword = game.ServerStorage.BlueSword
for i,v in pairs(RedCount) do
local ClonedSword = RedSword:Clone()
ClonedSword.Parent = game.Players[v].Backpack
end
for i,v in pairs(BlueCount) do
local ClonedSword = BlueSword:Clone()
ClonedSword.Parent = game.Players[v].Backpack
end
Please reply with a response or a question.
Thanks!

1 comment
Both tools have already been placed in ServerStorage.