RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"create a script that will allow the player too pick up a object and make it disappear when clicked"
-- local script local player = game.Players.LocalPlayer local mouse = player:GetMouse() local tool = Instance.new("Tool") tool.Name = "PickupTool" tool.Parent = player.Backpack local function onMouseDown() local target = mouse.Target if target and target:IsA("BasePart") then target.Parent = nil -- make the object disappear end end mouse.Button1Down:Connect(onMouseDown)