RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"make me a script to let me pick up a part as a tool and hold it"
-- script for part local part = script.Parent local function onTouch(otherPart) local player = game.Players:FindFirstChild(otherPart.Parent.Name) if player then local tool = Instance.new("Tool") tool.Name = part.Name tool.RequiresHandle = false tool.Parent = player.Backpack part.Parent = tool part.CanCollide = false part.Transparency = 1 end end part.Touched:Connect(onTouch) -- script for tool local tool = script.Parent local part = tool:FindFirstChild("Part") tool.Activated:Connect(function() part.Parent = game.Workspace part.CanCollide = true part.Transparency = 0 part.Position = tool.Parent.Character.HumanoidRootPart.Position + Vector3.new(0, 2, 0) tool:Remove() end)