of     1   

Raphael7
#189850724Friday, May 27, 2016 10:47 PM GMT

I'm currently making a custom backpack, and I've disable the Backpack in CoreGui. I'm using EquipTool() to have the Player equip a certain tool. These tools do not require a handle and yet they disappear at some point when equipped. I'm using Tools for simplicity, but I'm still open for other options.
Raphael7
#189990646Sunday, May 29, 2016 4:51 PM GMT

bump
Luo_Basics
#189990721Sunday, May 29, 2016 4:52 PM GMT

dont use equiptool just put the tool in their character r+://393244197r+://393244224r+://393244262
CeaselessQuokka
#189993543Sunday, May 29, 2016 5:15 PM GMT

I think I might know why, can I see the code please? Matthew is my little PF snake.
Raphael7
#189994289Sunday, May 29, 2016 5:21 PM GMT

I used the CommandBar to test this; game.Players.Player1.Character.Humanoid:EquipTool(game.Players.Player1.Backpack['Tool']) Then what I did after was use EquipTool() again to equip another tool. Do the tools need to be unequipped first before using EquipTool() again?
CeaselessQuokka
#189996069Sunday, May 29, 2016 5:38 PM GMT

Yes, if I remember correctly they do. I had this same problem. There is a function called "UnequipTools" for the humanoid, just use that. Matthew is my little PF snake.
Raphael7
#189997251Sunday, May 29, 2016 5:50 PM GMT

Alright, thanks.
Raphael7
#190001465Sunday, May 29, 2016 6:31 PM GMT

Hey, I tried it again and at some point they do disappear and I'm not quite sure why. Here is my script. -- Find and Equip Tool -- function Equip(num) for x, v in pairs(backpack:GetChildren()) do if v:IsA('Tool') then if v:FindFirstChild(num) then humanoid:EquipTool(v) end end end end -- Hotkeys -- local uis = game:GetService('UserInputService') uis.InputBegan:connect(function(input) if input.UserInputType == Enum.UserInputType.Keyboard and input.UserInputState == Enum.UserInputState.Begin then if input.KeyCode == Enum.KeyCode.One then if 1 <= #list then humanoid:UnequipTools() Equip(1) end elseif input.KeyCode == Enum.KeyCode.Two then if 2 <= #list then humanoid:UnequipTools() Equip(2) end elseif input.KeyCode == Enum.KeyCode.Three then if 3 <= #list then humanoid:UnequipTools() Equip(3) end elseif input.KeyCode == Enum.KeyCode.Four then if 4 <= #list then humanoid:UnequipTools() Equip(4) end end end end)
CeaselessQuokka
#190002092Sunday, May 29, 2016 6:37 PM GMT

I would add a wait after UneqipTools, and if that doesn't work I can take a model and tinker with it and see if I can see what's going on. Matthew is my little PF snake.
Raphael7
#190002657Sunday, May 29, 2016 6:43 PM GMT

I added the wait after Unequipping and everything seems to work fine now. Thanks!

    of     1