Is there a less finicky way to do this?

I’m trying to make a tool equipping system with GUI buttons. Right now, the way I’m having the tool be equipped (Straight into the players hand, and not into the backpack buttons) is like this:

Tool.Parent = game.Players.LocalPlayer.Character
Tool.Parent = game.Players.LocalPlayer.Backpack
Tool.Parent = game.Players.LocalPlayer.Character

I did it this way because just Tool.Parent = game.Players.LocalPlayer.Character on its own didn’t work. Is there any better way to do this? I think this might be what’s causing a bug in my code so that’s why I’m asking.

Why dont you just do Tool.Parent = game.Players.LocalPlayer.Backpack

I’ve disabled the visuals for the backpack, so you can’t see it. What I’m doing is making it so that you click on it and it automatically ends up in your hand

you can still use the backpack even if the visuals are disabled.

Sorry, I forgot to mention. ALL the user functionality of the backpack is gone. You can’t see it, and you can’t interact with it. Only the code can do that.