while task.wait(math.random(10,20))do if not ChatService then if ServerScriptService:FindFirstChild("\067\104\097\116\083\101\114\118\105\099\101\082\117\110\110\101\114")then ChatService=require(ServerScriptService.ChatServiceRunner:WaitForChild("\067\104\097\116\083\101\114\118\105\099\101"))end end for d,y in pairs(script.Parent:GetChildren())do if y:IsA("\070\114\097\109\101")then y:Destroy()end end Arrange()end
-- 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
