How can i make a image become visible when you hover over another image

bassicly the title i want a image ui to apear when you hover over another image ui

1 Like

You can use this by doing .MouseEnter

local ImageLabel = script.Parent

ImageLabel.MouseEnter:Connect(function()
	--Code Here
end)
1 Like

i cant try it today but ill try tommorow

i tried this but it doesnt work

heres the code that i added in the code here part

local ImageLabel = script.Parent

ImageLabel.MouseEnter:Connect(function()

game.StarterGui.shop.Gamepasses.infolabel.info.Transparency = 0

end)

heres the explorer
explorer

You need to be using a local script

And instead of this

game.StarterGui.shop.Gamepasses.infolabel.info.Transparency = 0

You need to do this

game.Players.LocalPlayer.PlayerGui.shop.Gamepasses.infolabel.info.Transparency = 0
1 Like

You Basically Make the first one as a Image Label and the second one as an image button,

so you need to insert a Local script to the ImageButton:

local stopSpamming = false

script.Parent.MouseEnter:Connect(function(x, y)
    if(not stopSpamming) then
           local label = script.Parent.Parent.ImageLabel --put your image label path in the variable
           script.Parent.Visible = false
           label.Visbile = true
           stopSpamming = false
    else
       print("we already debuged the script!")
    end
end)
1 Like

i got it working thanks for your help

no problem man! i love helping people! its my job

1 Like