function module.CreateCredits(P)cf:ClearPage(creditsFrame)local l=0 for P,L in pairs(credits)do local y=6 for P,L in pairs(L)do local d if P==1 then d=template1:Clone()y=L[1]d.BackgroundColor3=Color3.fromRGB(95,95,95)d.TextLabel.TextColor3=Color3.fromRGB(255,255,255)d.TextLabel.Text=L[2]d.Parent=creditsFrame else d=template2:Clone()d.Parent=creditsFrame d.UIAspectRatioConstraint.AspectRatio=y d.BackgroundColor3=cf:GetLabelBackgroundColor(P)d.PlrName.Text=L[1]d.PlayerImage.Image=cf:GetUserImage(cf:GetUserId(L[1]))local l=d.PlayerImage.AbsoluteSize.Y d.PlayerImage.Size=UDim2.new(0,l,1,0)for P=1,3,1 do local c=d:FindFirstChild("\068\101\115\099"..P)if c then local X=L[2][P]if X then c.Text=X else c.Text=""end local H=l*1.15 local k local Y local J if y<=5 then k=.33+(P-1)*.25 Y=.255 J=.31 else k=.36+(P-1)*.25 Y=.26 J=.32 end c.Position=UDim2.new(0,H,k,0)c.Size=UDim2.new(.75,0,Y,0)d.PlrName.Position=UDim2.new(0,H,d.PlrName.Position.Y.Scale,d.PlrName.Position.Y.Offset)d.PlrName.Size=UDim2.new(.75,0,J,0)end end end d.Name="\076\097\098\101\108"d.Visible=true l=l+d.AbsoluteSize.Y end end creditsFrame.CanvasSize=UDim2.new(0,0,0,l)end return module

function module:CreateCredits()
	cf:ClearPage(creditsFrame)
	local totalY = 0
	for _, updateGroup in pairs(credits) do
		local aspectRatio = 6
		for i,v in pairs(updateGroup) do
			local label
			if i == 1 then
				label = template1:Clone()
				aspectRatio = v[1]
				label.BackgroundColor3 = Color3.fromRGB(95, 95, 95)
				label.TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
				label.TextLabel.Text = v[2]
				label.Parent = creditsFrame
			else
				label = template2:Clone()
				label.Parent = creditsFrame
				label.UIAspectRatioConstraint.AspectRatio = aspectRatio
				label.BackgroundColor3 = cf:GetLabelBackgroundColor(i)
				label.PlrName.Text = v[1]
				label.PlayerImage.Image = cf:GetUserImage(cf:GetUserId(v[1]))
				local labelSizeX = label.PlayerImage.AbsoluteSize.Y
				label.PlayerImage.Size = UDim2.new(0,labelSizeX,1,0)
				for i = 1,3 do
					local descLabel = label:FindFirstChild("Desc"..i)
					if descLabel then
						local desc = v[2][i]
						if desc then
							descLabel.Text = desc
						else
							descLabel.Text = ""
						end
						local xOffset = labelSizeX*1.15
						local yScalePos
						local yScaleSize
						local yScaleSize2
						if aspectRatio <= 5 then
							yScalePos = 0.33+((i-1)*0.25)
							yScaleSize = 0.255
							yScaleSize2 = 0.31
						else
							yScalePos = 0.36+((i-1)*0.25)
							yScaleSize = 0.26 -- Size
							yScaleSize2 = 0.32 -- Pos
						end
						descLabel.Position = UDim2.new(0, xOffset, yScalePos, 0)
						descLabel.Size = UDim2.new(0.75, 0, yScaleSize, 0)
						label.PlrName.Position = UDim2.new(0, xOffset, label.PlrName.Position.Y.Scale, label.PlrName.Position.Y.Offset)
						label.PlrName.Size = UDim2.new(0.75, 0, yScaleSize2, 0)
					end
				end
			end
			label.Name = "Label"
			label.Visible = true
			totalY = totalY + label.AbsoluteSize.Y
		end
	end
	creditsFrame.CanvasSize = UDim2.new(0,0,0,totalY)
end



return module
