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

How to equip a tool that does not lie in the player backpack folder?

Hi!

I have a separate folder for each type of tools in which they are stored. When I equip a tool through a script, it cannot take it normally - the hand is raised and there is no tool, it does not work.

Is there a way to equip tool so that it does not lie in a backpack but in a different folder?

P.S I know about :EquipTool but if the item is not inside player backpack folder its not working.

Thanks)

2 comments

0

Your issue isnt the backpack, its the tool itself. You need to get a weld script.

0

Is it? If I equip it in the usual way everything is fine

2 answers

✓ Accepted answer

After testing, I found that :EquipTool() will work if you parent it to the Player's Backpack then run :EquipTool().

local Tool = Tool
Tool.Parent = Player.Backpack
Humanoid:EquipTool(Tool)

This also applies to parenting it to the Character:

local Tool = Tool
Tool.Parent = Player.Backpack
Tool.Parent = Player.Character

Don't know why that is the case, but it is.

in lighting, put the tools in a folder called "Tools", lets say you have a tool called weapon1, this is the script

local script

-- This clones the weapon from "Lighting" to the players backpack
game.Lighting.Tools.weapon1:Clone().Parent = game.Players.LocalPlayer.Backpack

1 comment

0

please don't downvote,

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