Hey everyone! The title says it all, I’ve been searching on a solution for my problems (as it seems that this bug is something common) but I couldn’t find any really useful. Here’s my simple script:
local TS = game:GetService("TweenService")
local Button = script.Parent
local Hover = Button.Hover
local Debounce = false
local WindowOpen = false
Button.MouseButton1Click:Connect(function()
print("Hi")
end)
Button.MouseEnter:Connect(function()
TS:Create(Hover, TweenInfo.new(.5), {ImageTransparency = 0}):Play()
end)
Button.MouseLeave:Connect(function()
TS:Create(Hover, TweenInfo.new(.5), {ImageTransparency = 1}):Play()
end)
The funny part is that MouseEnter and MouseLeave works perfectly
Are you sure you’re using an ImageButton (or TextButton, but not in this case)?
Please check you’re referencing a button and not an imageLabel in the script, because imageLabels work with mouseEnter and mouseLeave but not with MouseButton1Click. This could be your issue.