I want the rank to be colored but not the message how can this be done?
child.Chatted:connect(function (msg) if (debo.Value ~= 0) then wait() end
if child.Muted.Value == false then
if (groups == true) then
debo.Value = debo.Value + 1
local v=Instance.new("StringValue")
local groupsthing = 782018
if child.Group.Value==groupname then --looks complex, right?
v.Value=""..child.Group.Value..""..string.gsub(string.gsub(child.Rank.Value,"%b() ",""),"%b[] ","")
if child:IsInGroup(groupsthing) then
v.Value = v.Value .. ""
end
if child:IsInGroup(grp1) then --a hidden feautre :O
v.Value = v.Value .. ""..grp1s.." " --.. child:GetRoleInGroup(grp1) --if needed
end --i just dont have a use for it to show these ranks
if child:IsInGroup(grp2) then
v.Value = v.Value.. ""..grp2s.." " --.. child:GetRoleInGroup(grp2) -- if needed
end
if child:IsInGroup(grp3) then
v.Value = v.Value .. ""..grp3s.." "
end
v.Value = v.Value .." "..child.Name..": "(..msg) -- Like I want this to be a different color then Name and Rank.
else v.Value=""..child.Name..": "..msg end
local col=Instance.new("Color3Value",v)
local col1=Instance.new("Color3Value",v)
col.Name="Color"
col1.Name="ColorStroke"
if child:GetRankInGroup(groupid) >= 254 then
col.Value = Color3.new(0,0,0)
col1.Value = Color3.new(0,0,0)
elseif child:GetRankInGroup(groupid) >= 251 then
col.Value = Color3.new(0.7,0.9,1)
col1.Value = Color3.new(0.3,0.25,0.5)
elseif child:GetRankInGroup(groupid) >= 151 then
col.Value = Color3.new(0.4,0.6,0.7)
col1.Value = Color3.new(0.2,0.3,0.35)
elseif child:GetRankInGroup(groupid) >= 91 then
col.Value = Color3.new(0.95,0.8,0.85)
col1.Value = Color3.new(0.475,0.4,0.425)
elseif child:GetRankInGroup(groupid) >= 30 then
col.Value = Color3.new(0.1,0.2,0.3)
col1.Value = Color3.new(0.7,0.9,0.8)
elseif child:IsInGroup(groupid) then
local le1 = 1 - (child:GetRankInGroup(groupid)*0.02)
local le2 = 1 - (child:GetRankInGroup(groupid)*0.02)
local le3 = 0.8 - (child:GetRankInGroup(groupid)*0.07)
col.Value = Color3.new(le1,le2,le3)
col1.Value = Color3.new(le1/2,le2/2,le3/2)
else
col.Value = Color3.new(1,85/255,1)
col1.Value = Color3.new(150/255,0,0)
end

1 comment
Make one label for the rank and another for the chat.