Hi! So I am trying to make it so when you click on my tool (which has 3 unions inside and they are all named, "Handle") it puts the objects in the player's inventory. When I try it, it attaches my character to the tool, it basically teleports me to it then won't let me move.
local Donut = script.Parent
local ClickDetector = Donut.Handle.ClickDetector
if Donut.Handle:FindFirstChild("TouchInterest") then
Donut.Handle.TouchInterest:Destroy()
end
ClickDetector.MouseClick:Connect(function(Player)
local DonutClone = Donut:Clone()
DonutClone.Parent = Player.Backpack
end)
Does anybody have any idea why?

2 comments
this means your tool is probably anchored
I set it to after the function is called the parts unanchor, but it still does the same thing