How can I add an image onto the chatbox and make it fade

I already have the chat gui set up how I want but there’s one problem.

the red lines do not fade away as the chat.

I’m guessing this has something to do with the ChatScript from the Chat folder thingy, I just don’t know what to do to make it work like the rest of the chatbox.

1 Like

You can tell the transparency by looking at the ChatChannelParentFrame's transparency. It’s in the chat

image

Here’s how you can get it:

local player = game.Players.LocalPlayer
local playerGui = player.PlayerGui
local chatTransparency = playerGui.Chat.Frame.ChatChannelParentFrame
3 Likes

That’s not what I meant.

At about 0:12 you can see the chat fading away, but the lines remain. I want to know how to make the lines fade away with the chat.

1 Like

maybe use a wait()? to check how long it has been since last input?

1 Like

you could go the lazy route, and put a localscript in each bar that repeatedly sets the transparency to the transparency of the chat frame

example:

local bar = script.Parent
local chatFrame = bar.Parent

while task.wait() do
    bar.BackgroundTransparency = chatFrame.BackgroundTransparency
end

i don’t know if this is optimization friendly though

2 Likes

Did you make the red lines is this something built in to the chat that you tweaked?

I added the lines into the chat gui myself