-- recommend waiting for a longer time

while task.wait(math.random(10 , 20)) do
	 --[[
	 we are requiring the chatService module in the loop because 
		it might not have loaded before
	 ]]-- 
	if not ChatService then
		if ServerScriptService:FindFirstChild("ChatServiceRunner") then
			ChatService = require(ServerScriptService.ChatServiceRunner:WaitForChild("ChatService"))
		end
	end
	
	-- destroying the frame  here because cleaning space for new ones
	
	for i , v in pairs(script.Parent:GetChildren()) do
		if v:IsA("Frame") then
			v:Destroy()
		end
	end
	
	Arrange()
	
end
