You would need to adapt this script to use two TextLabels; one for the name, and one for the message. Unless you would like the message and the name to be the same colour.
01 | function UpdateOldLabels(Parent) |
02 | for i,v in pairs (Parent:GetChildren()) do |
03 | if v.Name:sub( 1 , 4 ):lower() = = "line" then |
04 | local LineNumber = v.Name:sub( 5 ) |
05 | if LineNumber = = "12" then |
08 | v.Name = "line" .. tostring ( tonumber (LineNumber) + 1 ) |
09 | v.Position = v.Position - UDim 2. new( 0 , 0 , 0 , 15 ) |
15 | game:GetService( "Players" ).PlayerAdded:connect( function (player) |
16 | player.Chatted:connect( function (msg) |
17 | for _,v in ipairs (game:GetService( "Players" ):GetChildren()) do |
18 | UpdateOldLabels(v:WaitForChild( "PlayerGui" ).ChatGui.Frame) |
19 | newchatline = Instance.new( "TextLabel" ,v:WaitForChild( "PlayerGui" ).ChatGui.Frame) |
20 | newplayerline = Instance.new( "TextLabel" ,v:WaitForChild( "PlayerGui" ).ChatGui.Frame) |
21 | newchatline.Text = msg |
22 | newplayerline.Text = player.userId = = Game.CreatorId and "[OWNER] " ..player.Name or player.Name |
23 | newchatline.Size = UDim 2. new( 0.5 , 0 , 0 , 15 ) |
24 | newplayerline.Size = UDim 2. new( 0.5 , 0 , 0 , 15 ) |
25 | newchatline.Position = UDim 2. new( 0.5 , 0 , 1 ,- 15 ) |
26 | newplayerline.Position = UDim 2. new( 0 , 0 , 0 , 15 ) |
27 | newchatline.Font = "SourceSansBold" |
28 | newplayerline.Font = "SourceSansBold" |
29 | newchatline.TextColor 3 = Color 3. new( 0 , 0 , 0 ) |
30 | newplayerline.TextColor 3 = player.userId = = Game.CreatorId and Color 3. new( 1 , 0 , 0 ) or player.TeamColor.Color |
31 | newchatline.TextStrokeTransparency = 0 |
32 | newplayerline.TextStrokeTransparency = 0 |
33 | newchatline.BackgroundTransparency = 1 |
34 | newplayerline.BackgroundTransparency = 1 |
35 | newchatline.BorderSizePixel = 0 |
36 | newplayerline.BorderSizePixel = 0 |
37 | newchatline.FontSize = "Size14" |
38 | newplayerline.FontSize = "Size14" |
39 | newchatline.TextXAlignment = "Left" |
40 | newplayerline.TextXAlignment = "Left" |
41 | newchatline.TextYAlignment = "Top" |
42 | newplayerline.TextYAlignment = "Top" |
43 | newchatline.ClipsDescendants = true |
44 | newplayerline.ClipsDescendants = true |
45 | newplayerline.Name = "line1" |
46 | newchatline.Name = "line1" |
48 | UpdateOldLabels(game:GetService( "StarterGui" ).ChatGui.Frame) |
49 | newchatline:Clone().Parent = game:GetService( "StarterGui" ).ChatGui.Frame |
Untested, may or may not work.