Yes its is, but it a bit more complex, first you need to format it in with hex colors, and if you dont wannna work with hex colors, you need to convert from color3 to hex and then use "string.format" and do some stuff, here is the code
local RemoteEvent = game.ReplicatedStorage.ServerRemoteEvents:WaitForChild("Show_server_chat_message") local function Show_server_chat_message(text, hexcode, prefix)
local formattedMessage = string.format('%s%s', hexcode, tostring(prefix), tostring(text)) game.TextChatService.TextChannels.RBXGeneral:DisplaySystemMessage(formattedMessage) end RemoteEvent.OnClientEvent:Connect(Show_server_chat_message)
-- ChatMessenger ModuleScript local ChatMessenger = {} local function Color3ToHex(color) local function componentToHex(component) local hex = string.format("%02X", math.floor(component * 255 + 0.5)) return hex end local r, g, b = color.R, color.G, color.B local hex = "#" .. componentToHex(r) .. componentToHex(g) .. componentToHex(b) return hex end function ChatMessenger.DisplayMessage(message, textColor, prefix) local hexCode = Color3ToHex(textColor) local Configuredprefix if (prefix == "") then Configuredprefix = "" elseif prefix == nil then Configuredprefix = "[Facility]" else Configuredprefix = prefix end local prefix = "[Server]" local RemoteEvent = game.ReplicatedStorage.ServerRemoteEvents:FindFirstChild("Show_server_chat_message") if RemoteEvent then RemoteEvent:FireAllClients(message, hexCode, Configuredprefix) else warn("ServerRemoteEvent not found.") end end return ChatMessenger
Tip: change how long it takes at the math.random(15, 25) which means in between 15 sec and 25 seconds a message will come.
Yup
Omg thank u I will add this to my game
lol we have the same name
Great video thank you
this youtuber is so underated
awsome
It worked for me!
bro you are best youtuber in the world you are pro
thank u
best i sub and like
Can i somehow like Change The Color?
How can i add colors to the text?
Is there a way to make the same text appear at the same time for all players ina server? Kinda like the hot air balloon in adopt me.
wish i could copy and paste it >:(
You can it’s in pastebin in the description
it doesn't work for me
Thanks but?how can we do like after all the messages have appeared,they will appear again and again and like this?
use the while true do loip
That is really cool! Is it possible to add a color to the word "system" that it is maybe Orange or an other Color?
Yes its is, but it a bit more complex, first you need to format it in with hex colors, and if you dont wannna work with hex colors, you need to convert from color3 to hex and then use "string.format" and do some stuff, here is the code
local RemoteEvent = game.ReplicatedStorage.ServerRemoteEvents:WaitForChild("Show_server_chat_message")
local function Show_server_chat_message(text, hexcode, prefix)
local formattedMessage = string.format('%s%s', hexcode, tostring(prefix), tostring(text))
game.TextChatService.TextChannels.RBXGeneral:DisplaySystemMessage(formattedMessage)
end
RemoteEvent.OnClientEvent:Connect(Show_server_chat_message)
and ofc the module for converting
-- ChatMessenger ModuleScript
local ChatMessenger = {}
local function Color3ToHex(color)
local function componentToHex(component)
local hex = string.format("%02X", math.floor(component * 255 + 0.5))
return hex
end
local r, g, b = color.R, color.G, color.B
local hex = "#" .. componentToHex(r) .. componentToHex(g) .. componentToHex(b)
return hex
end
function ChatMessenger.DisplayMessage(message, textColor, prefix)
local hexCode = Color3ToHex(textColor)
local Configuredprefix
if (prefix == "") then
Configuredprefix = ""
elseif prefix == nil then
Configuredprefix = "[Facility]"
else
Configuredprefix = prefix
end
local prefix = "[Server]"
local RemoteEvent = game.ReplicatedStorage.ServerRemoteEvents:FindFirstChild("Show_server_chat_message")
if RemoteEvent then
RemoteEvent:FireAllClients(message, hexCode, Configuredprefix)
else
warn("ServerRemoteEvent not found.")
end
end
return ChatMessenger
how is it not working for me?🤣
would be nice to copy and paste the script -_-
NOT Working