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

I'm trying to clone a sword into a Players backpack but I'm not sure where to start. Help?

Asked by
Proflts 15
9 years ago

Please help me. I'm not sure which function to use to do this. Please help me with this issue I'm trying to make a sword fighting tournament.

1 answer

Log in to vote
0
Answered by
Shawnyg 4330 Trusted Badge of Merit Snack Break Moderation Voter Community Moderator
9 years ago

Well, you'd use the clone method to copy the sword. Then, parent it! Pretty simple.

game.Lighting.Sword:clone().Parent = game.Players.Shawnyg.Backpack

Of course, you could make it a localscript, or have some other trigger.

For all players:

for i,v in pairs(game.Players:GetPlayers()) do
    game.Lighting.Sword:clone().Parent = v.Backpack
end
0
what would u do if u wanted it to go to all players? Proflts 15 — 9y
0
would you use the getchildren? or findfirstchild? Im not sure Proflts 15 — 9y
Ad

Answer this question