Will there be a native option supporting customization of chats for each player across all clients?
It’d be great to have a player with userId 000000 have a specific bubble chat color across all users.
I’m not sure of the implementation for Bubble Chat, but if we could do something like SetExtraData("ChatColor") like we can do for the existing chat, it’d be great.
ChatModule example of what I’m referencing:
SpecialChatColors = {
["879330134"] = Color3.fromRGB(0,109,176)
}
local Run = function(ChatService)
ChatService.SpeakerAdded:Connect(function(speakerName)
local speaker = ChatService:GetSpeaker(speakerName)
local player = speaker:GetPlayer()
local chatColor = SpecialChatColors[tostring(player.UserId)]
if (chatColor) then
speaker:SetExtraData("ChatColor", chatColor)
end
end)
end
I’ve been experimenting with this using custom models.
The VerticalStudsOffset property changes every time you change into a different character.
However, for VerticalStudsOffset to update, you HAVE to send another chat message.
My request is to make VerticalStudsOffset update when this setting is being changed, not when another chat message is sent. I don’t know if this counts for other settings aswell, but it does for this one.
Where I put this in?
local settings = {
– The amount of time, in seconds, to wait before a bubble fades out.
BubbleDuration = 15,
-- The amount of messages to be displayed, before old ones disappear
-- immediately when a new message comes in.
MaxBubbles = 3,
-- Styling for the bubbles. These settings will change various visual aspects.
BackgroundColor3 = Color3.fromRGB(0, 0, 0),
TextColor3 = Color3.fromRGB(255, 255, 255),
TextSize = 16,
Font = Enum.Font.Sarpanch,
Transparency = .1,
CornerRadius = UDim.new(0, 12),
TailVisible = false,
Padding = 8, -- in pixels
MaxWidth = 300, --in pixels
-- Extra space between the head and the billboard (useful if you want to
-- leave some space for other character billboard UIs)
VerticalStudsOffset = 0,
-- Space in pixels between two bubbles
BubblesSpacing = 6,
-- The distance (from the camera) that bubbles turn into a single bubble
-- with ellipses (...) to indicate chatter.
MinimizeDistance = 40,
-- The max distance (from the camera) that bubbles are shown at
MaxDistance = 100,
}
pcall(function()
game:GetService("Chat"):SetBubbleChatSettings(settings)
end)
This should not be built into the engine. This needs to be a standalone package that developers can easily drop into their game. This allows new developers to learn how modular code is written and it allows developers to have much greater control over the appearance and functionality of the chat. Building functionality like this into the engine is the wrong thing to do!
--[[ SCRIPT VARIABLES ]]
local CHAT_BUBBLE_FONT = Enum.Font.SourceSans
local CHAT_BUBBLE_FONT_SIZE = Enum.FontSize.Size24 -- if you change CHAT_BUBBLE_FONT_SIZE_INT please change this to match
local CHAT_BUBBLE_FONT_SIZE_INT = 24 -- if you change CHAT_BUBBLE_FONT_SIZE please change this to match
local CHAT_BUBBLE_LINE_HEIGHT = CHAT_BUBBLE_FONT_SIZE_INT + 10
local CHAT_BUBBLE_TAIL_HEIGHT = 14
local CHAT_BUBBLE_WIDTH_PADDING = 30
local CHAT_BUBBLE_PADDING = 12
local CHAT_BUBBLE_FADE_SPEED = 1.5
local BILLBOARD_MAX_WIDTH = 400
local BILLBOARD_MAX_HEIGHT = 250 --This limits the number of bubble chats that you see above characters
local ELIPSES = "..."
local MaxChatMessageLength = 128 -- max chat message length, including null terminator and elipses.
local MaxChatMessageLengthExclusive = MaxChatMessageLength - getMessageLength(ELIPSES) - 1
local NEAR_BUBBLE_DISTANCE = 65 --previously 45
local MAX_BUBBLE_DISTANCE = 100 --previously 80
--[[ END OF SCRIPT VARIABLES ]]
Question, is the old chat but the very old chat still a thing tho? The one with the blue lines on the left side. Such as the ones used in dialog bubbles.
I agree I think that Roblox should have done one overall UI change instead of one bit at a time like they have. It just looks off. I hope they rework the chat GUI but at the same time i’m scared that they will make it worse and more cartoony like they did the chat. I personally like the new chat excluding its look. I agree with you though. Would be nice to see a new font maybe that’s easier to read?!
That is something you can do on your own though. If you use UserInputService.TextBoxFocused and UserInputService.TextBoxFocusReleased, you can detect if they are focused on the chatbox. Here is an example of this through a LocalScript.
local UIS = game:GetService("UserInputService")
UIS.TextBoxFocused:Connect(function(Box)
if Box.Name=="ChatBar" then
-- Play typing animation
end
end)
UIS.TextBoxFocusReleased:Connect(function(Box)
if Box.Name=="ChatBar" then
-- Stop typing animation
end
end)