Universal Script 📌
16.4k Views
45 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

Updates

  1. Script edited: Update script

  2. Script edited: Update script

  3. Script edited: Create script

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
Universal Script 📌
6.8k
318.5k
Bumped 3 hours ago
Script hub
29.3k
241.3k
Bumped 3 hours ago
Script hub
6.9k
101.2k
Bumped 4 hours ago

Script hub

SAGAZx Hub

Script hub
280.1k
189.5k
Bumped 5 hours ago
Key System
Script hub
376
476
Bumped 6 hours ago

Script hub

Blythe

Script hub
9.0k
56.5k
Bumped 7 hours ago
Key System