How do you have a persons name that is a certain type of color. Below is the script!
function UpdateOldLabels(Parent)
for i,v in pairs(Parent:GetChildren()) do
if v.Name:sub(1,4):lower() == "line" then
local LineNumber = v.Name:sub(5)
if LineNumber == "12" then
v:Destroy()
else
v.Name = "line"..tostring(tonumber(LineNumber) + 1)
v.Position = v.Position - UDim2.new(0,0,0,15)
end
end
end
end
game:GetService("Players").PlayerAdded:connect(function(player)
player.Chatted:connect(function(msg)
for _,v in ipairs(game:GetService("Players"):GetChildren()) do
UpdateOldLabels(v:WaitForChild("PlayerGui").ChatGui.Frame)
newchatline = Instance.new("TextLabel",v:WaitForChild("PlayerGui").ChatGui.Frame)
newchatline.Text = player.Name=='EmperorF' and ("[OWNER] "..player.Name.. ": " ..msg) or (player.Name.. ": " ..msg)
newchatline.Size = UDim2.new(1,0,0,15)
newchatline.Position = UDim2.new(0,0,1,-15)
newchatline.Font = "SourceSansBold"
newchatline.TextColor3 = player.TeamColor.Color
newchatline.TextStrokeTransparency = 0
newchatline.BackgroundTransparency = 1
newchatline.BorderSizePixel = 0
newchatline.FontSize = "Size14"
newchatline.TextXAlignment = "Left"
newchatline.TextYAlignment = "Top"
newchatline.ClipsDescendants = true
newchatline.Name = "line1"
end
UpdateOldLabels(game:GetService("StarterGui").ChatGui.Frame)
newchatline:Clone().Parent = game:GetService("StarterGui").ChatGui.Frame
end)
end)

2 comments
What color do you want it to be? A random color?
Like say I want my name to be Red and your name to be Blue. I want colors to certain people on ROBLOX