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

How do I clone a tool and send it to a player's inventory?

Asked by 4 years ago

I was trying to make a script that clones the tool in the replicated storage and sends it to the player's inventory.

2 answers

Log in to vote
0
Answered by
Borrahh 265 Moderation Voter
4 years ago

When you want to give the Tool to Players, Firstly Clone It, as if you don't, There will be only 1 tool on the game.

local tool = game.ReplicatedStorage.Tool
local cloneTool = tool:Clone()
cloneTool.Parent = Player.Backpack
Ad
Log in to vote
1
Answered by
D3VRO 66
4 years ago

If we're talking something pretty basic. All you'd have to do is make a variable cloning the tool in ReplicatedStorage than parenting it to the player's inventory/backpack.

Ex:

local toolC = game.ReplicatedStorage[...] *-- tool name goes in there*
toolC.Parent = Player.Backpack

You'll need to make a variable for the player but that's basically a rough idea of what you need to do. If you could provide your script that could help.

Answer this question