OpenTextChatService - Open-Source Implementation of TextChatService

No, it will not be affected., This was created to comply with the new TexChatService.

2 Likes

Absolutely love the preformace gains available by using this.
As for usage, I’d prefer to have it load as quickly as possible and instead have put the module and a localscript in ReplicatedFirst

task.wait()
repeat wait() until game.TextChatService.ChatVersion==Enum.ChatVersion.TextChatService
task.wait(3)
require(game.ReplicatedFirst:WaitForChild("OpenTextChatService"))

Probably not the most optimal way to add this, but the ease of being sure it is the first loaded and if it still fails to load, Roblox chat will still take over. Would be feedback if it’s better to load it a different way.

As for bugs I’ve noticed,


for module.GetTextBounds
line 319 is local, so if GetTextBoundsAsync failed, but GetTextSize works, it won’t return because of it being in scope, removing ā€˜local’ from textBounds lets it return the results of GetTextSize.


for module.ExperienceChat:CotentViewChildChanged
line 2562 may randomly error because scrollingView just doesn’t exist anymore, studio end play test, etc, adding

if child:FindFirstChild("scrollingView")==nil then return end

after the not child:IsA(ā€œGuiObjectā€) can help stop these errors from occuring? Probably not an optimal fix, but reduces output clutter.


if you’re quick to type after pressing the slash key, sometimes it misses a character or two, have switched around InputEnded to InputBegan for capturing the chatbox

self.Connection:AddConnection(
	UserInputService.InputBegan:Connect(function(input)
		if input.KeyCode == OpenChatInputBarConfiguration.KeyboardKeyCode and OpenChatInputBarConfiguration.Enabled and module.OwnsTextBox() then
			task.wait()
			module.SetChatActive(true)
			ChatInputBarTextBox:CaptureFocus()
		end
	end)
)

and then for /whisper seems to put the user who said the command into a category chat, with no way to get back out, probably a fix already being worked on by OP as earlier posts about consolidating chats if ChannelTabsConfiguration isn’t enabled.

1 Like

Appreciate the feedback! Once I’m back in town I’ll take a better look at these issues. I’ll be sure let you know once they’ve been addressed. Thank you!