players = game.Players:GetPlayers()
for i,v in pairs(players) do
sword = game.Lighting.Sword
swordclone = sword:clone()
swordclone.Parent = v.BackPack
COMMUNITY QUESTION
How would I put the sword in the players backpack?
1 answer
Two small problems:
- It's named
Backpack, notBackPack. - 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.
