function onChat(p,W)if script.Chat5.Value==""then script.Chat5.Value=W.Name..("\058 "..p)elseif script.Chat5.Value~=""then if script.Chat4.Value==""then script.Chat4.Value=W.Name..("\058 "..p)elseif script.Chat4.Value~=""then if script.Chat3.Value==""then script.Chat3.Value=W.Name..("\058 "..p)elseif script.Chat3.Value~=""then if script.Chat2.Value==""then script.Chat2.Value=W.Name..("\058 "..p)elseif script.Chat2.Value~=""then if script.Chat1.Value==""then script.Chat1.Value=W.Name..("\058 "..p)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=W.Name..("\058 "..p)end end end end end end function onEnter(p)p.Chatted:connect(function(W)onChat(W,p)end)end game.Players.ChildAdded:connect(onEnter)

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)
