Bubble chat manipulation + Encryption?

Hello, I’m a beginner lua/python programmer, and I have recently tried to study something but I don’t seem to find anything anywhere about how to do what I want to do, so I’m humbly requesting the scripting community to help me out on this.

So I’m in a group which has a heavy vibe of having a distinct group of people be super secret and mysterious, kinda like the SCP:F’s have their ISD or IA, and I began to wonder if I could script something kinda like an encrypted chat mode for those people.

Basically, the idea is to have a toggle GUi on the screen only for a select few (most likely will grab them from a player:IsInGroup(id)), and once the toggle is on, the messages sent by those people will seem like gibberish to other people, but in the client side of those in the group, it will be normal, kinda like an encryption mechanism.

The problem is I’ve looked everywhere and I can’t seem to find anything on manipulating chat bubbles or to even encrypt something, all I found was encryption posts for script names, not for something in-game like an unpredictable message from someone.

If you wish to discuss more privately about this, my discord is qNero#7253, or if you want to request more information that might be helpful in finding a solution for it.

You would have to use:
By the way = server script means normal and client/local script means the script with a person on it.

-- server script in server script service
local RemoteEvent = -- put it in replicated storage 
game.Players.PlayerAdded:Connect(function(player)
if player:IsInGroup(--[[the group id]]) then
--RemoteEvent:FireClient(player)
      end
end)

--local script in gui 
local RemoteEvent = -- put it in replicated storage 
local frame = --your frame I prefer text box to write stuff make sure it is not visible 
RemoteEvent.OnClientEvent:Connect(function(player)
frame.Visible = true 
end)

-- you would then get all players in the game that is in the group then send the private message 
--by making a value when you are done typing it and ready to send it(Value would equal the message) send it with another remote event to server and a third one to all the clients in the group by.
-- :FireClient is just fire one and FireAllClients is fire all of them

You can always just use a radio mechanism like many other SCP things, then fire a chat event with an obfuscated string (you can just call random values from a table of random characters) of a player.You could find the length of the string they sent through the radio and emulate it with secret text “said” by the player.

this doesn’t explain much, wouldn’t this just create a frame and make it visible?

You could make a custom chat system based on remote events.

When the player opens a “channel”, the server creates an encryption key for these players and sends it to them with a remote event.

When a player sends a message, it sends the raw message with a remote event, the server encrypts the message, and it gets sent to every client. The clients will then attempt to decrypt the message and display it.

You could try finding an open-source encryption module somewhere