How can i tween the transparency of an imagelabels and Intensity of blurs

I’m trying to tween down the transparency of a GUI Imagelabel. I am also trying to tween up the intensity of a BlurEffect.
I am using this code to try and tween the Imagelabel to no avail.

local VignetteTransparency = {
	['ImageTransparency'] = 0
}

local VignetteTween1 = TweenService:Create(Vignette1, VignetteTweenInfo, VignetteTransparency)

I’m not sure where I should start for tweening the blur. How do I fix these issues? Thanks.

Try using

VignetteTween1:Play()
1 Like

I am using this, the entire uncropped script is

local DamagePart = workspace.KingOfficeVentSys:WaitForChild("DamagePart")
local TweenService = game:GetService("TweenService")
local VignetteTweenInfo = TweenInfo.new(10,Enum.EasingStyle.Linear,Enum.EasingDirection.Out)
local Vignette1 = game.StarterGui.VentEffect.ImageLabel1
local Vignette2 = game.StarterGui.VentEffect.ImageLabel2
local Vignette3 = game.StarterGui.VentEffect.ImageLabel3
local VignetteTransparency = {
	['ImageTransparency'] = 0
}

local VignetteTween1 = TweenService:Create(Vignette1, VignetteTweenInfo, VignetteTransparency)
local VignetteTween2 = TweenService:Create(Vignette2, VignetteTweenInfo, VignetteTransparency)
local VignetteTween3 = TweenService:Create(Vignette3, VignetteTweenInfo, VignetteTransparency)

game.Workspace.KingOfficeVentSys.DamagePart.Touched:Connect(function(FXEnable)
	if FXEnable and FXEnable.Parent and FXEnable.Parent:FindFirstChild("Humanoid") then
		VignetteTween1:Play()
		VignetteTween2:Play()
		game.Workspace.GlobalSoundStorage.Misc.Heartbeat:Play()
		wait(5)
		game.Workspace.GlobalSoundStorage.Misc.EarRinging:Play()
		wait(7)
		game.Workspace.GlobalSoundStorage.Misc.Heartbeat.Playing = false
	end
end)

local VignetteTransparency = {
[‘ImageTransparency’] = 0
}

0 is visible, it should be 1.

The images start invisible, I am trying to tween them down so that they become visible, it is a vignette that fades in.

1 Like
local VignetteTransparency = {
	ImageTransparency = 0
}

I think this should fix the problem

1 Like

To do tween it’s just one line. game:GetService("TweenService"):Create(ImageLabel/BlurEffect, TweenInfo.new(speed, etc), {ImageTransparency = 0, BackgroundTransparency = 0}):Play()

I tried this and it simplifies the script but still doesnt seem to work.