Ok so I got this script from free models and I need to change it to make it different. It is a CustomChat Gui. I want it to when a specified person talks, it gives them a tag infront of their name and a special color. How can I edit this to make this work?
groupid= 000000
groupname="ABC"
game.Players.ChildAdded:connect(function (child)
local label=Instance.new("StringValue",child) label.Name="Group"
local label2=Instance.new("StringValue",child) label2.Name="Rank"
if child:IsInGroup(groupid) then label.Value=groupname label2.Value=child:GetRoleInGroup(groupid) else label.Value="Unknown" label2.Value="Player" end
child.Chatted:connect(function (msg)
local v=Instance.new("StringValue")
v.Value=child.Group.Value.." "..child.Rank.Value.." "..child.Name..": "..msg
local col=Instance.new("Color3Value",v)
col.Name="Color"
col.Value=child.TeamColor.Color
game.Debris:AddItem(v,3)
gui=game.StarterGui.ChatService.Chats
t1=gui.Text1
t2=gui.Text2
t3=gui.Text3
t4=gui.Text4
t5=gui.Text5
t6=gui.Text6
t1.TextColor3=t2.TextColor3
t1.Text=t2.Text
t2.TextColor3=t3.TextColor3
t2.Text=t3.Text
t3.TextColor3=t4.TextColor3
t3.Text=t4.Text
t4.TextColor3=t5.TextColor3
t4.Text=t5.Text
t5.TextColor3=t6.TextColor3
t5.Text=t6.Text
t6.TextColor3=col.Value
t6.Text=v.Value
v.Parent=script
end) end)
