I want to remove the chat window from my Backrooms game to add to the realism. Specifically this part
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)
Regular script or LocalScript?
Local script in StarterPlayerScripts.
EDIT: The given script “destroys” the chatbox
Didn’t work.
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.
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
.
Tried it myself, it sounds like this is the behavior you’re looking for.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.