How do I remove the chat window?

I want to remove the chat window from my Backrooms game to add to the realism. Specifically this part
image

4 Likes

Try this script:

-- Place this script in StarterPlayer -> StarterPlayerScripts

game.Players.PlayerAdded:Connect(function(player)
    player.PlayerGui.ChildAdded:Connect(function(child)
        -- Check if the added child is the Chat
        if child:IsA("Chat") then
            -- Destroy the Chat
            child:Destroy()
        end
    end)
end)
4 Likes

Regular script or LocalScript?

Local script in StarterPlayerScripts.

EDIT: The given script “destroys” the chatbox

1 Like

image
Didn’t work.

1 Like

okay wait try to make a function, then run it

-- Place this script in StarterPlayer -> StarterPlayerScripts

local function destroyChat()
    local player = game.Players.LocalPlayer
    local playerGui = player:WaitForChild("PlayerGui")

    -- Look for the Chat descendant within PlayerGui
    local chat = playerGui:FindFirstChildOfClass("Chat")
    if chat then
        chat:Destroy()
    end
end

-- Run the function when a new player joins or when the script is initially executed
game.Players.PlayerAdded:Connect(destroyChat)
destroyChat()

Oh wait, my bad. Place it in a script

I believe this can be done by going into TextChatService → ChatWindowConfiguration and setting Enabled to false.

1 Like

image
Still no.

Tried this a while ago, did nothing whatsoever.

It might be because you’re using the LegacyChatService. This method should work in the new TextChatService version.

I’m using the new TextChatService.

This is the old chat system. Go to TextChatService → ChatVersion property → set to TextChatService.

1 Like

Tried it myself, it sounds like this is the behavior you’re looking for.
image

1 Like

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