Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you get copy of a sword to go into all of the players backpacks? [closed]

Asked by
Proflts 15
8 years ago

I am trying to make a sword fighting tournament and I am trying to clone a linked sword into all the players backpacks and I do not know where I would start to do that. I know how to clone the sword just not how to put it in everyones backpacks.

0
You know, I don't appreciate how you just deleted your previous question, when I gave a valid answer. While I was updating it, you deleted, and I never saw one "Thank you" Shawnyg 4330 — 8y
0
^ + dont ask questions like these it's bad. User#5978 25 — 8y
0
sorry bro i didnt mean to thanks for your help though i really appreciate it Proflts 15 — 8y
0
Profits accept my answer... User#5978 25 — 8y

Closed as Not Constructive by Shawnyg, User#5978, and dyler3

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
1
Answered by 8 years ago
for i,v in pairs(game.Players:GetChildren()) do
if v.Backpack ~= nil
then
clone = game.Lighting.Sword:Clone()
clone.Parent = v.Backpack
end
end
0
thank u Proflts 15 — 8y
0
accept the answer and +1 User#5978 25 — 8y
Ad