When I’m hovering over a UI button then scroll away from it, it still shows that I’m hovering over that UI button. https://cdn.discordapp.com/attachments/1095015200501014670/1138474600053870726/2023-08-08_07-08-41.mp4
I’m using this
Object.MouseEnter:Connect(function(x, y)
game:GetService("TweenService"):Create(Object, TweenInfo.new(0.1), {Size = UDim2.new(0, 75, 0, 75)}):Play()
game:GetService("TweenService"):Create(Object, TweenInfo.new(0.25), {BackgroundColor3 = Color3.fromRGB(170, 255, 255)}):Play()
end)
Object.MouseLeave:Connect(function(x, y)
game:GetService("TweenService"):Create(Object, TweenInfo.new(0.1), {Size = UDim2.new(0, 70, 0, 70)}):Play()
game:GetService("TweenService"):Create(Object, TweenInfo.new(0.1), {BackgroundColor3 = Color3.fromRGB(0, 255, 0)}):Play()
end)
Object.MouseButton1Down:Connect(function(x, y)
game:GetService("TweenService"):Create(Object, TweenInfo.new(0.1), {Size = UDim2.new(0, 80, 0, 80)}):Play()
end)
Object.MouseButton1Up:Connect(function(x, y)
game:GetService("TweenService"):Create(Object, TweenInfo.new(0.1), {Size = UDim2.new(0, 75, 0, 75)}):Play()
end)