As the title reflects, I’m creating a sort of “who dun it” type of game and I want to have the ability of switching the chats from bubble to classic from time to time.
Each player has a bool value called ChatHistory. When marked true, the I want the chat window to appear. When marked false, I want the chat window to disappear and just be the bar where you type.
local ChatService = game:GetService("Chat")
local players = game:GetService("Players")
for i, v in pairs (players:GetChildren()) do
local Bool_ChatHistory = v.PlayerScripts:WaitForChild("ChatHistory")
if Bool_ChatHistory.Value == true then
ChatService.LoadDefaultChat = true
else
ChatService.LoadDefaultChat = false
end
end
The problem is, I’ve ran into a roadblock where Roblox is even limiting my access.
the same server script as before and this client code
event.OnClientEvent:Connect(function(value)
module.BubbleChatEnabled = not value
module.ClassicChatEnabled = value
end)
-- true = show window, false = you can just type
I’ve tried that route already and if I even create one function in that ChatSettings corescript, it breaks everything altogether and the player is unable to chat.