
16.4k Views
38 Executions
TextChatService
Universal Script 📌
Lover_idIePublished 10
2 years ago
Please login to perform these actions:Does it work?
No reports yetNo 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
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)









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