how would i achieve this by hovering over the esc to change the colour?
I dont know how to detect if the mouse is touching menu button
You can’t detect it, but you can make a Frame that is underneath it that can detect it, I believe. You need to use MouseEnter and MouseLeave events in a script to do it.
The other option is to use an ImageButton I guess, since it has a hover image built-in already. The idea is that you just use a blank background, and when the menu is hovered, you change the background to something with some transparency.
I should warn you that the menu is actually being changed - the hamburger button will no longer be used soon.
frames don’t detect what’s hovered if hovering over the esc button
Well the other way is to make your own hover detection - check if the mouse is within the box where the esc button is located. i.e.,
-- This is pseudo-code, it won't work if you paste it in
if (mouse.x >= 0) and (mouse.x <= (whatever the size of it is))
and (mouse.y >= -32) and (mouse.y <= 0) then
-- put your hover code here
-- for example, if you want to have semi-transparent
-- frame become visible on hover,
frame.Visible = true
else
frame.Visible = false
end
Something like that would do it. You would need to put it in a loop to check every runtime frame.
Hope that helps