Now this is a simple question and has a simple answer, :Chat() but the problem is that I want it to also appear in the chat box and I really just dont know what to do anymore. I researched alot and found about this “ChatService” in roblox wikia but it says literally nothing on how to get it since you cant get it without “GetService” (also mentioned in there) someone please help me and provide me with an answer. Much appreciated
If you want to make a chat bubble, use chatservice and do :Chat
If you want the player to actually send a message in the game’s chat, you will have to get the speaker and force it to chat. I made a module that makes this a lot easier and will send it in like 30 minutes when I get home
How can I get the speaker? I need enlightement about this
So basically, I made a module on roblox that simplifies all of this. The module is here.
You just need to require the module and do this:
--ChatModule is the required module I made
--player is the player object
local speaker = ChatModule.GetSpeakerFromPlayer(player)
ChatModule.SendChatMessage(speaker, "all", "Message Text Here")
Tell me if that breaks, will try to help more once I get home
Not only did I learn how to get chatservice from your module now, I also found this. Server-Side Chat Modules | Roblox Creator Documentation it seems that I have overlooked this on my research. Regardless, thank you very much
(dropping the link in case if anyone has the same problem as me and finds this post)
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.