Universal Script 📌
4.6k Views
150 Executions

Chat message Script for ur hub or script

Universal Script 📌
forsaken86878
forsaken86878100K executions
2 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

chat

Updates

  1. Script edited: Create script

View Raw
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")


Comments

1
Log in to join the conversation. Login
ilas19kiia's profile picture
ilas19kiia2 years ago(edited)

cool

1

More universal scripts

See all
Script hub
186.9k
1.9M
Bumped 48 minutes ago
Key System

Script hub

#13 this week

Verified script badgeAirflow HUB

Script hub
602.2k
52.8k
Bumped 54 minutes ago
Script hub
45.6k
11.1k
Bumped 3 hours ago
Key System
Paid

Script hub

#25 this month

Verified script badgeZekeHub - 58 Games, 1,300+ Features

Universal Script 📌
46
4
Approved 3 hours ago
Script hub
1.7k
9.7k
Bumped 4 hours ago