Let's say Player 1 is holding a tool and Player 2 touches the tool. How do I remove the tool from the Player 1's inventory and move it into Player 2's inventory and have them automatically hold it?
Server script in the tool
local Players = game:GetService("Players") local Tool = script.Parent for Index, Descendant in pairs(Tool:GetDescendants()) do if Descendant:IsA("BasePart") then Descendant.Touched:Connect(function(HitPart) local Character = HitPart.Parent local Player = Players:GetPlayerFromCharacter(Character) if Player then local Backpack = Player:WaitForChild("Backpack") local Humanoid = Character:WaitForChild("Humanoid") Tool.Parent = Backpack Humanoid:UnequipTools() Humanoid:EquipTool(Tool) end end) end end