Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

(Unanswered) How to edit message to be white and not base on teamcolor in this model?

Asked by 9 years ago

The Model is [UM Productions] Chat System, Is there anyway to get messages to be one color in this script of this portion of the script? I want the Message to be White not based on the whole teamcolor that is bound to the name as well.

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
    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 
0
Anyone? Anciteify 70 — 9y
0
Is it possible to get ..msg to be a single color not be based on any other teamcolor? Anciteify 70 — 9y

Answer this question