Chat message Script for ur hub or script
Key RequiredUniversal

Chat message Script for ur hub or script

Universal Scriptforsaken86878forsaken86878 4.5K views 111 executesUpdated Dec 22, 2024
5.0/ 5(1 votes)
10100% Positive
Lua Script•15 lines (616 chars)
local TextChatService = game:GetService("TextChatService")

local function SendChatMessage(message)
    -- Check if the new TextChatService is being used
    if TextChatService.ChatVersion == Enum.ChatVersion.TextChatService then
        -- Send message using the new TextChatService
        local textChannel = TextChatService.TextChannels.RBXGeneral
        textChannel:SendAsync(message)
    else
        -- Send message using the default chat system
        game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(message, "All")
    end
end

SendChatMessage("Ur text here")

Features & Information

chat

Community Comments (1)

ilas19kiiailas19kiiaDec 22, 2024(edited)

cool

More Scripts for Universal Scripts