Cannot edit ImageLabel transparency with a localscript at all

im trying to tween the transparency of a imagelabel from 1 to 0 so that it fades in, this wasnt working however and tween wouldnt respond without any error put in the output. I tried directly changing the transparency from 1 to 0 straight forward make it appear and that wasnt working. I assumed something was wrong with my variable so I tried directly changing the full game.startergui.screengui.imagelable and that still didnt work.

local DamagePart = workspace.KingOfficeVentSys:WaitForChild("DamagePart")
local TweenService = game:GetService("TweenService")
local VignetteTweenInfo = TweenInfo.new(10,Enum.EasingStyle.Sine,Enum.EasingDirection.In)
local BlurTweenInfo = TweenInfo.new(10,Enum.EasingStyle.Linear,Enum.EasingDirection.Out)
local DeBlurrerInfo = TweenInfo.new(2,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 Blurrer = game.Lighting.Blur

local VignetteTween1 = TweenService:Create(Vignette1, VignetteTweenInfo, {ImageTransparency = 0})
local VignetteTween2 = TweenService:Create(Vignette2, VignetteTweenInfo, {ImageTransparency = 0})
local VignetteTween3 = TweenService:Create(Vignette3, VignetteTweenInfo, {ImageTransparency = 0})
local BlurTween = TweenService:Create(Blurrer, BlurTweenInfo, {Size = 56})
local DeBlurrer = TweenService:Create(Blurrer, DeBlurrerInfo, {Size = 0})

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

this is the full code I am using to tween/change transparency of my imagelabel. How do I fix this? Thanks.

I think you should use PlayerGui | Roblox Creator Documentation instead of StarterGui.

But the rest of the code seems to be fine.

wait actually if im trying to make this local so it only appears on whoever touches the bricks’ screen than a playergui would be better yeah

how do i put an object into playergui i cant find it

The objects that are in StarterGui will be copied to the player’s PlayerGui when they join the game. So instead of using game.StarterGui, you should use game.Players.LocalPlayer.PlayerGui

1 Like

In A Local Script This Maybe Could Work, Im Not Good At Scripting So I’m Sorry If It Doesn’t Work.

local Player = game.Players.LocalPlayer

    local DamagePart = workspace.KingOfficeVentSys:WaitForChild("DamagePart")
    local TweenService = game:GetService("TweenService")
    local VignetteTweenInfo = TweenInfo.new(10,Enum.EasingStyle.Sine,Enum.EasingDirection.In, 0)
    local BlurTweenInfo = TweenInfo.new(10,Enum.EasingStyle.Linear,Enum.EasingDirection.Out, 0)
    local DeBlurrerInfo = TweenInfo.new(2,Enum.EasingStyle.Linear,Enum.EasingDirection.Out, 0)
    local Vignette1 = Player.PlayerGui.VentEffect.ImageLabel1
    local Vignette2 = Player.PlayerGui.VentEffect.ImageLabel1
    local Vignette3 = Player.PlayerGui.VentEffect.ImageLabel1
    local Blurrer = game.Lighting.Blur

    local VignetteTween1 = TweenService:Create(Vignette1, VignetteTweenInfo, {ImageTransparency = 0})
    local VignetteTween2 = TweenService:Create(Vignette2, VignetteTweenInfo, {ImageTransparency = 0})
    local VignetteTween3 = TweenService:Create(Vignette3, VignetteTweenInfo, {ImageTransparency = 0})
    local BlurTween = TweenService:Create(Blurrer, BlurTweenInfo, {Size = 56})
    local DeBlurrer = TweenService:Create(Blurrer, DeBlurrerInfo, {Size = 0})

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

It’s my first time answering something on the devforum so i’m so sorry if it doesn’t work :frowning:

Yesterday i got member so i’m new.