So when a player first joins and says their first chat message, the chat appears as 'Value'. See the picture to understand more what I am talking about
Here is the code:
local chatstorate = game.ReplicatedStorage.ChatStorage
local groupid = 1
game.Players.PlayerAdded:connect(function(plr)
plr.Chatted:connect(function(theirmessage)
local stringval = Instance.new('StringValue', chatstorate)
if plr:GetRankInGroup(groupid) ==255 then stringval.Name = '[S] '..plr.Name..': '..theirmessage
elseif plr:GetRankInGroup(groupid) ==17 then stringval.Name = '[O] '..plr.Name..': '..theirmessage
elseif plr:GetRankInGroup(groupid) <5 then stringval.Name = '[LR] '..plr.Name..': '..theirmessage
elseif plr:GetRankInGroup(groupid) <10 then stringval.Name = '[MR] '..plr.Name..': '..theirmessage
elseif plr:GetRankInGroup(groupid) <16 then stringval.Name = '[HR] '..plr.Name..': '..theirmessage
elseif plr:GetRankInGroup(groupid) ==11 then stringval.Name = '[Dip] '..plr.Name..': '..theirmessage
elseif plr:GetRankInGroup(groupid) ==0 then stringval.Name = '[Guest] '..plr.Name..': '..theirmessage
end
end)
end)
The picture: http://i.imgur.com/dmdyyF0.png
