function onEnter() script.Parent.BackgroundTransparency = 0.7 if --i dont know what goes here then script.Parent.BackgroundTransparency = 1 end end script.Parent.MouseEnter:connect(onEnter)
this script is so thatwhen the mouse enters the gui the transparency will change, i dont know how to revert it back though, any ideas
Just like there's a MouseEnter event, there's also a MouseLeave event for (most) GUI objects.
The simple fix is to have a second connection (script.Parent.(EventName):connect
thing).