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

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

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

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

2 comments

0

what would u do if u wanted it to go to all players?

0

would you use the getchildren? or findfirstchild? Im not sure

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