Tool stuck to an arm when drop button clicked

Hello, I wanted to do a custom “Click E” to pick up an item. Everything is working properly but the issue is that the light is stuck to my arm when clicking backspace.

https://gyazo.com/26629a420c3381bf02fdd764d09a8d0c


image

Tools have a CanBeDropped property. Is that set true? Tool | Roblox Creator Documentation

yes it is I think thats because of the script

What is qPerfectionWeld script doing? Is it welding the tool to your hand? Two suggestions:

  1. Try renaming “Handle2” to “Handle”. AFAIK tools have to have a part named “Handle” unless they have RequiresHandle set to false.

  2. Add a callback for the tool’s unequip when you parent it to make sure it is being called when you press backspace.

Tool.Unequipped:Connect(function() print("Tool", Tool.Name, "unequipped") end)

Have you welded the parts : Light,Beam to the tool handle?

Try this

local RS = game:GetService("RunService")
local UIS = game:GetService("UserInputService")
local Player = game.Players.Localplayer
    For _,v in pairs(game.Workspace.Flashlights:GetChildren()) do
        local FlashGUI = v.Handle2 -- recommend changing this and the parts name to Handle
        RS.RenderStepped:Connect(function()
         if Player:DistanceFromCharacter(FlashGUI.Position) < 5 then
             FlashGUI.EToOpen.Enabled = true
          else
             FlashGUI.EToOpen.Enabled = false
          end
       end)

UIS.InputBegan:Connect(function(INPUT) 
       if INPUT.UserInputType == Enum.UserInputType.Keyboard then
CanBeDropped = true
if Key 

And so on. Basically put CanBeDropped = true somewhere in the InputBegan function