Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How would I put the sword in the players backpack?

players = game.Players:GetPlayers()

for i,v in pairs(players) do
			sword = game.Lighting.Sword
			swordclone = sword:clone()
			swordclone.Parent = v.BackPack

1 answer

Two small problems:

  1. It's named Backpack, not BackPack.
  2. You forgot an "end" after the for loop.
players = game.Players:GetPlayers()

for i,v in pairs(players) do
            sword = game.Lighting.Sword
            swordclone = sword:clone()
            swordclone.Parent = v.Backpack
end

This discussion is preserved as it was. New answers, comments, and votes are closed.