You need to define what tool
is.
How would I do that, lol.
Make a variable the defines tool.
local tool = --Where tool is
Got it thanks.
30 characters
Like above the Tool variable needed to be set to script.Parent because the script should be just under the tool
-- goes in server script under tool
local Tool = script.Parent -- the tool
local Player = game.Players:GetPlayerFromCharacter(Tool.Parent) -- Gets the current player by the character when equip
Tool.Activated:Connect(function()
Tool.ClickDetector.MaxActivationDistance = 0 -- use tool here because it is what contains the clickdetector
game.InsertService:LoadAsset(4884323613):GetChildren()[1].Parent = Player.Backpack
end)