UI Drag Detector hover listener?

Hello! I did some researching and there are barely any topics on UI Drag Detectors and I can not find a function for getting a hover. I tried using a TextButton but that cancels the UIDragDetector. Thanks for your help :]
(found this code online but thats only for normal Drag Detectors)

local drag:UIDragDetector = guiObj.UIDragDetector
drag.MouseHoverEnter:Connect(function()
	updateTooltip(itemData.Name, itemData.Description, itemData.Type)
	showTooltip()
end)
drag.MouseHoverLeave:Connect(function()
	hideTooltip()
end)

Ok I am dumb I forgot about MouseEnter and MouseLeave. The code:

drag.Parent.MouseEnter:Connect(function()
    updateTooltip(itemData.Name, itemData.Description, itemData.Type)
    showTooltip()
end)
    drag.Parent.MouseLeave:Connect(function()
    hideTooltip()
end)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.