How do I create a Roblox Text Message system?


I want to create a text messaging system.
The green box is where messages appear from when you type in red box.
The red box is where you type messages so they appear in the green box.
How would I make this possible in terms of using my own GUI? I can’t find any tutorials or barely anything that relates to this so any help would be highly appreciated.

Why don’t you make the green section a text box? So you don’t have to do anything

I want to make it so others that have the GUI can see the messages that people put.

Use property change signal. And add it to the green section

script.Parent:GetPropertyChangedSignal("Text"):Connect(function()
	game.ReplicatedStorage.MessageEvent:FireServer(script.Parent.Text)
end)

AlvinBlox and countless other youtubers have made a tutorial on it, heck there’s even a roblox documentation article.

Im guessing you had bad grammar when searching for a tutorial.

So: Local script

script.Parent.RedBox:GetPropertyChangedSignal("Text"):Connect(function()
	game.ReplicatedStorage.MessageEvent:FireServer(script.Parent.RedBox.Text)
end)

game.ReplicatedStorage.MessageEvent.OnClientEvent:Connect(function(message)
	script.Parent.GreenBox.Text = message
end)

Server script:

game.ReplicatedStorage.MessageEvent.OnServerEvent:Connect(function(plr,message)
	game.ReplicatedStorage.MessageEvent:FireAllClients(message)
end)

Basically, just send info to the server and the client will receive the text.

2 Likes

I wouldn’t say bad grammar. I was just unsure on what to type for it.

Yeah thats a bit close to what i meant.