How do I Tween an Image Label's Image Transparency property?

In the past, I have used this bit of code in order to Tween an Image Label’s Background Transparency property:

	local Info = TweenInfo.new(1)
	local Tween = game:GetService("TweenService"):Create(RedBG,Info,{BackgroundTransparency=0})

When I wanted to Tween the Image Transparency instead, I assumed all I would have to do is change the last part from “{BackgroundTransparency=0})” to “{ImageTransparency=0}).” However, this apparently is not the case, because it just flat out doesn’t work :sweat_smile:. I tried to research more on this, but I couldn’t find anything about it.

1 Like

Give this article a read, it could help :slight_smile:

local newTransparency = 1

local tweenInfo = TweenInfo.new(15, Enum.EasingStyle.Sine, Enum.EasingDirection.Out)
local tween = TweenService:Create(frame, tweenInfo, {Transparency = newTransparency, ImageTransparency = newTransparency})

There was a few posts in the past about the same issue, credits to CSJeverything for the script (That was in the post’s solution)

1 Like

GuiObject tween functions only support size and position.

Also, @2xA_Imagineer95 are you playing the tween after creating it?

	local Info = TweenInfo.new(1)
	local Tween = game:GetService("TweenService"):Create(RedBG,Info,{BackgroundTransparency=0})
	Tween:Play() -- Like this

Oh wait, turns out there was a typo in my code… great… thanks for the help everyone, it has been a long day :rofl: