ImageTransparency doesnt change after Tween

I have an Image that is set to a Transparency of 1 as default

I tween the image as follows:

info = TweenInfo.new(3, Enum.EasingStyle.Circular, Enum.EasingDirection.Out, 0, false, 0)
ptable = {ImageTransparency = 0.5}
imagetween = TweenService:Create(image, info, ptable)
imagetween:Play()

After that, I try to set the transparency manually with this:

	if imagetween.PlaybackState == Enum.PlaybackState.Playing then
		imagetween.PlaybackState = Enum.PlaybackState.Cancelled
	end
	
	image.Transparency = 1

Yet, the image doesnt change at all

Am I doing this correctly? Or should I try to approach this differently?
Any help is appreciated, thanks.

I’m assuming you’re using an gui object with an image.

If you are trying to change the transparency of the image, you need to use ImageTransparency instead of Transparency

1 Like

Thanks a lot man, I keep making dumb mistakes lol.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.