Hello I’ve recently been starting to learn scripting and gui topics but I’ve been hitting bumps that i cant find solutions to.
I’m trying to make a gui that when my mouse hovers over the button either the image lights up or another type of effect for this to seem as it lights up ill go what ever the best solution as it doesn’t need to be perfect
it works but not the way i want, as it simply doesnt change but when i click on it it dulls out to .5 i want to to light up when my mouse is over it and dull down or go back to normal when my mouse moves off it, thanks again for your time!
right now, when you click the script.parent, 2 click events are firing at the same time, so you are both setting its transparency to 0.5 and 0 in the same frame.
script.Parent.MouseEnter:Connect(function()
script.Parent.ImageTransparency = 0.5 -- this will run when the mouse hovers over
end)
script.Parent.MouseLeave:Connect(function()
script.Parent.ImageTransparency = 0 -- this will run when the mouse leaves the button
end)
MouseEnter means when your mouse hovers over.
MouseLeave means when your mouse stops hovering over.