TextChatService
Key RequiredUniversal

TextChatService

Universal ScriptLover_idIeLover_idIe 16.4K views 33 executesUpdated Jul 12, 2024
5.0/ 5(1 votes)
10100% Positive
Lua Script•37 lines (1487 chars)
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)

Features & Information

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
#TextChatService#Edit Chat#Font

Community Comments (1)

Lover_idIeLover_idIeJul 12, 2024(edited)

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

More Scripts for Universal Scripts