✓ Accepted answer
You're disabling the backpack, but luckily the tool still exists within the player's backpack and we can equip it using the EquipTool method. The tool still won't show as equipped since the toolbar is disabled, but it will be equipped. You can do this from either the server or the client, but I will be demonstrating the client-side implementation. For most convenience I recommend this localscript to be in StarterCharacterScripts, which will run every time the character is added.
local Players = game:GetService("Players")
local Character = script.Parent
local LocalPlayer = Players.LocalPlayer
local Backpack = LocalPlayer.Backpack
local Tool = Backpack:FindFirstChild("testTool")
if Tool then
Character:WaitForChild("Humanoid"):EquipTool(Tool)
end
2 comments
There is no "easy" way to do this. Unfortunately, if you disable the backpack, then the tools won't work. I'm assuming you want the weapon to automatically give to the player without the tool being visible to the player's toolbar. In order to do something like this, you'd have to create a custom backpack.
To do that you don't need any script if you are making a wepon put it in starter pack if u got a wepon from the toolbox just press it and make sure its in starter pack. So when a player spawns with it they will auto equip the weapon.