Show text when mouse hovers over imageGui (not image)

I have a crafting system, and I want the player to be able to see the amount of wood/stone/gold required to craft an item. Each of the crafting slots are Image Buttons, and I’ve noticed that there is a ‘HoverImage’ property for it. However, I want hover text, not a hover image.

How would I make a certain text show when hovering over an image button?

GuiObject.MouseEnter:Connect(function()

end)

GuiObject.MouseLeave:Connect(function()

end)

Use imageGui.MouseEnter

Ex:

local imageUi = Gui:WaitForChild("Image")

imageUi.MouseEnter:Connect(function()
    -- Something appears?
end)

imageUi.MouseLeave:Connect(function()
    -- Disappears?
end)

I know if someone moves their mouse fast it glitches it, not sure if putting mouseleave inside mouse enter would change it though

1 Like