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

How to move a tool from ReplicatedStorage into your backpack via script?

So I need a script where you can move a tool from ReplicatedStorage and move it into your backpack via script.

2 comments

0

It depends on how you want the player to obtain the tool. But you would use a remote event

0

Yeah, but like there's no way to get the tool without copying it or moving the tool into your backpack through like Dex. And theres no remote events I can fire to get the tool.

1 answer

✓ Accepted answer

In a ServerScript:

local targetTool = game.ReplicatedStorage:WaitForChild("TOOL")

targetTool:Clone().Parent = PLAYER_OBJECT.Backpack

Of course, this is the most barebones. Depending on the circumstances required for the player to obtain the tool, you may need to use remotes. If the tool is just being added on player join, you might as well just place the tool inside of the backpack directly.

2 comments

0

What do I replace the "PLAYER_OBJECT" with?

0

... the player object located inside of the Player Service.

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