-- Kind of messy right? Lol.

function onChat(msg,newPlayer)
if script.Chat5.Value == "" then
script.Chat5.Value = newPlayer.Name..": "..msg
elseif script.Chat5.Value ~= "" then
if script.Chat4.Value == "" then
script.Chat4.Value = newPlayer.Name..": "..msg
elseif script.Chat4.Value ~= "" then
if script.Chat3.Value == "" then
script.Chat3.Value = newPlayer.Name..": "..msg
elseif script.Chat3.Value ~= "" then
if script.Chat2.Value == "" then
script.Chat2.Value = newPlayer.Name..": "..msg
elseif script.Chat2.Value ~= "" then
if script.Chat1.Value == "" then
script.Chat1.Value = newPlayer.Name..": "..msg
elseif script.Chat1.Value ~= "" then
script.Chat1.Value = script.Chat2.Value
script.Chat2.Value = script.Chat3.Value
script.Chat3.Value = script.Chat4.Value
script.Chat4.Value = script.Chat5.Value
script.Chat5.Value = newPlayer.Name..": "..msg
end
end
end
end
end
end
function onEnter(newPlayer)
newPlayer.Chatted:connect(function(msg) onChat(msg,newPlayer) end)
end
game.Players.ChildAdded:connect(onEnter)
