How to make this chat system for a Murder-like game?

Sorry that the title is vague, hard to put my question into a condensed title.

I’m working on a game similar to the various Murder Games.

I want to make it so that players currently in a round can only see messages from other players in the round while those in the lobby can see everyone’s messages.

I’ve tried to find some info on how to do this but I wasn’t able to (probably because it’s hard to put into a small question).

I believe that all the current trending Murder games have this feature so I believe it’s possible but I can’t be certain.

If it is possible, could someone give me some resources that would allow me to make the feature.

2 Likes

I don’t have personal experience doing this, but I believe it can be done by placing users in the lobby in their own ChatChannel and then maybe you can just use the Player.Chatted event to relay in-game user messages into the lobby ChatChannel. Read into the Lua Chat System and I am sure you will figure it out.

4 Likes

You’d have to make a custom ish chat, I recommend seeing YouTube tutorials for this as they are complicated.

2 Likes

First of all making a custom chat is not complicated, second of all YouTube tutorials are not a good source of learning how to script, and lastly everything is documented in http://robloxdev.com so why would you even need to watch YouTube tutorials :man_facepalming:

3 Likes

You can add some simple code to roblox’s chat system. Roblox already checks if communication is allowed between 2 players adding an extra check here should be the easiest way to do it.

ChatServiceRunner.ChatChannel line 73 & 87

Not true, some YouTubers (if the method is explained in depth and the code isn’t just handed to you) can be useful in learning how to program.

1 Like

True but there are barely any videos which properly explain the code and not spoon-feed. Some of them are good but deprecated tutorials like Pea’s Factory’s tutorials.