Tool Activate Function Not Working

I have a tool that creates a sphere in workspace but it does NOTHING at all I have GUIs but they aren’t visible and it does not even print anything on fired. I have a grab script but the keybind is middle mouse scroll button, and tools activate with the right click so I don’t know what is going on

script.Parent.Activated:Connect(function(hit)
	print("fired")
	if workspace:FindFirstChild(script.Parent.Parent.Name.."Ball") then
		workspace:FindFirstChild(script.Parent.Parent.Name.."Ball"):Remove()
	else

		local cln = script.Parent.Hand:Clone()
		cln.Position = script.Parent.Hand.Position
		cln.Transparency = 0
		cln.Name = script.Parent.Parent.Name.."Ball"
		cln.Parent = workspace
		cln.CanCollide = true
		cln.PointLight.Enabled = true



	end
end)

image
Location

.Activated has always had weird behavior for me, however I’m not exactly sure why (although someone may say why below). Instead, I recommend using .MouseButton1Click instead. It still works on mobile devices, if you were wondering.

Just realized this is a tool and not a TextButton :sweat_smile:

I created a replica of your tool with the exact same code, part names, and it seems to be working for me.

Did you set the correct parts for your WeldConstraint?

image