I'm working on a game, and when the match starts, it's meant to give every players the starter weapons.
for i,v in pairs(game.Players:GetChildren()) do
for i,c in pairs(game.Lighting.Weapons:GetChildren()) do
v:WaitForChild("Backpack")
c:clone().Parent = player.Backpack
end
end
My code doesn't work, it's in a normal script, inside a model in Workspace. Can anybody help?

1 comment
You may want to change the "i" in the second loop to something else.