Universal Script 📌
16.4k Views
38 Executions

TextChatService

Universal Script 📌
Lover_idIe
Lover_idIePublished 10
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

This script has a Welcome and Farewell system. For example, A new player joins the game, It welcomes them. And for the Farewell one, It says Farewell to any player that leaves the game. And for the other stuff, you can edit them to your likings. PS. It only works for games that use the new chat system. Here's what they look like (Script Running) https://bit.ly/4d1iVU9 https://bit.ly/3Y1hqBc

View Raw
local TextChatService = game:GetService("TextChatService")
local Players = game:GetService("Players")

local ChatWindowConfiguration = TextChatService.ChatWindowConfiguration
local ChatInputBarConfiguration = TextChatService.ChatInputBarConfiguration
local BubbleChatConfiguration = TextChatService.BubbleChatConfiguration
local font = Font.fromEnum(Enum.Font.FredokaOne)

local function WelcomeMessage(player)
    local displayName = player.DisplayName
    TextChatService.TextChannels.RBXSystem:DisplaySystemMessage("Welcome, " .. displayName .. ".")
end

local function FarewellMessage(player)
    local displayName = player.DisplayName
    TextChatService.TextChannels.RBXSystem:DisplaySystemMessage("Farewell, " .. displayName .. ".")
end

WelcomeMessage(Players.LocalPlayer)
Players.PlayerAdded:Connect(WelcomeMessage)
Players.PlayerRemoving:Connect(FarewellMessage)

ChatWindowConfiguration.HeightScale = 1.2
ChatWindowConfiguration.WidthScale = 1.2
ChatWindowConfiguration.TextStrokeTransparency = 1
ChatWindowConfiguration.TextSize = 14.3
ChatWindowConfiguration.FontFace = font

ChatInputBarConfiguration.FontFace = font
ChatInputBarConfiguration.TextStrokeTransparency = 1

BubbleChatConfiguration.TailVisible = false
BubbleChatConfiguration.BubblesSpacing = 8
BubbleChatConfiguration.FontFace = font
BubbleChatConfiguration.TextSize = 16
BubbleChatConfiguration.TextColor3 = Color3.fromRGB(255, 255, 255) 
BubbleChatConfiguration.BackgroundColor3 = Color3.fromRGB(32, 32, 32)


Comments

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

This site might help btw: https://create.roblox.com/docs/reference/engine/classes/TextChatService

1

Tags

More universal scripts

See all
Script hub
268.8k
114.4k
Bumped 25 minutes ago
Key System
Script hub
628
54
Bumped 2 hours ago
Script hub
171.1k
1.4M
Bumped 3 hours ago
Key System
Script hub
16.5k
3.2k
Bumped 5 hours ago
Key System
Paid
Script hub
17.1k
87.3k
Bumped 5 hours ago