If I were to remove Roblox's chat system ENTIRELY to make a custom chat from scratches Would it be safe and what features do I need to put so it reaches roblox's standards(Chat filtering etc.)
If your game is FIltering Enabled then you need to know how to use Filtering Enabled and remote events to create a custom chat from scratch
By using RemoteEvents you can Replicate text to the Server
Say we have Player1 and Player2
Player1 Types some text lets say he typed "Hello World!" and clicks send this will only show the text to Player1 since we are using a LocalScript and the game is Filtering Enabled so we must Replicate the text to the whole server so Player2 can also see the text that Player1 sent
How do we do this? with RemoteEvents! Here's an example~~~~~~~~~~~~~~~~~
--LocalScript
local ChatSendEvent = game.ReplicatedStorage.ChatSendEvent local InputBox = script.Parent.InputBox local SendButton = script.Parent.SendButton
SendButton.MouseButton1Click:connect(function()
ChatSendEvent:FireServer()
end)
--ServerScript
local ChatSendEvent = game.ReplicatedStorage.ChatSendEvent
ChatSendEvent.OnServerEvent:connect(function() --Replicate Text using clone functions etc end)
~~~~~~~~~~~~~~~~~
You get the idea but you have to pass some paramaters for this to work
Sorry first time posting on this site and i've been so inactive lately