Hello! I’ve decided to start implementing my GUI today but when I change the image on the image buttons there appears to be a flickering. I’m unsure where this is coming from. Any help would be much appreciated.
https://gyazo.com/2787155fcbfdf8d95dee18bf9175d9cf
local button = script.Parent
local ts = game:GetService("TweenService")
local ti = TweenInfo.new(0.5, Enum.EasingStyle.Quint, Enum.EasingDirection.Out) --you can set that to anything you want
local tIn = {Size = UDim2.new(0, 490,0, 105)} --glow color
local tOut = {Size = UDim2.new(0, 470,0, 100)} --start color
local createIn = ts:Create(button, ti, tIn) --when mouse ENTERS button
local createOut = ts:Create(button, ti, tOut) --when mouse LEAVES button
button.MouseEnter:Connect(function()
script.Parent.Image = "rbxgameasset://Images/begin_active (1)"
createIn:Play()
end)
button.MouseLeave:Connect(function()
script.Parent.Image = "rbxgameasset://Images/begin_deactive (1)"
createOut:Play()
end)