local C={Texture={"\114\098\120\097\115\115\101\116\105\100\058\047\047\053\053\053\056\050\054\050\050\054\051","\114\098\120\097\115\115\101\116\105\100\058\047\047\053\053\053\056\051\049\050\051\051\056","\114\098\120\097\115\115\101\116\105\100\058\047\047\053\053\053\056\051\049\050\056\056\056","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\049\051\049\053\057\057\053","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\049\051\049\054\050\051\057","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\048\056\053\055\050\052\054";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\048\056\053\055\050\052\054";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\055\056\053\057\048\054","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\048\056\053\055\051\055\051";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\048\056\053\055\051\053\053";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\048\056\053\055\051\054\048","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\048\056\053\055\051\052\057","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\048\056\053\055\052\053\049";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\048\056\053\055\052\052\050","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\048\056\053\055\052\050\052";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\049\051\052\056\053\048\048";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\049\051\052\056\053\051\057";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\055\050\052\056\054\052";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\055\050\052\057\051\049";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\055\050\053\050\057\055";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\055\050\053\051\051\050","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\055\050\053\050\057\055";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\055\050\053\048\055\054","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\055\050\053\049\050\053";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\055\050\053\050\052\057","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\055\050\053\049\057\051","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\055\050\053\049\054\048","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\051\050\053\049\049\049\050";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\055\050\053\051\057\056","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\049\050\055\052\053\057\053";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\049\050\055\053\050\054\050";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\049\050\055\052\057\053\051","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\049\051\048\050\052\056\056";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\049\051\048\050\052\051\056";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\049\051\048\050\052\054\053","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\049\050\055\053\050\048\056";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\049\050\055\053\049\056\055";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\049\050\055\053\050\048\052","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\049\050\055\053\049\054\053";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\049\050\055\053\049\051\054";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\049\050\055\053\049\052\056","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\055\050\052\055\050\048","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\055\049\056\050\048\055";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\055\049\055\056\051\055";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\055\049\055\056\052\056";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\055\049\056\050\056\056","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\055\049\055\057\054\050";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\055\049\055\057\055\054","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\055\049\056\049\054\055","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\055\049\055\055\057\049","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\055\049\055\056\048\057","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\055\049\056\050\053\054";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\055\049\055\057\048\052";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\055\049\055\057\050\056","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\049\052\054\049\056\054\056","\114\098\120\097\115\115\101\116\105\100\058\047\047\053\053\053\056\050\054\050\050\054\051";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\049\051\048\050\052\056\056";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\049\051\048\050\052\051\056","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\049\051\048\050\052\054\053";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\049\052\054\050\048\051\050";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\049\052\057\048\054\056\050","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\049\052\054\050\049\051\048","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\049\052\056\057\054\050\053";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\049\052\057\048\055\050\057";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\049\052\057\048\054\057\056","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\049\052\057\048\055\049\055";"\114\098\120\097\115\115\101\116\105\100\058\047\047\053\054\053\053\054\048\053\054\056\051";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\048\055\051\056\049\054","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\048\054\052\057\056\048","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\048\054\052\056\048\048","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\048\054\053\049\051\048";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\048\054\052\057\056\048","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\048\054\052\057\052\048";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\048\054\052\057\054\054";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\048\054\052\056\048\048";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\048\054\052\056\048\048","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\048\054\052\055\054\056";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\048\054\053\049\051\048","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\048\054\053\048\055\053","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\048\054\053\048\057\056","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\049\052\057\048\054\056\050","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\049\053\050\056\053\051\051";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\049\053\050\056\052\057\052";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\049\053\050\056\053\052\051","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\048\054\052\057\056\048";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\048\054\052\057\052\048";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\048\054\052\057\054\054","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\049\053\050\056\052\051\049";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\049\053\050\056\052\051\049","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\049\053\050\056\052\050\048","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\049\053\048\051\050\052\048","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\049\053\048\050\056\051\054","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\049\052\054\050\052\054\052";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\049\052\054\050\052\051\051";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\049\052\054\050\052\052\055","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\049\052\054\050\053\049\056","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\049\052\054\050\053\048\051";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\049\052\054\050\053\049\053";"\114\098\120\097\115\115\101\116\105\100\058\047\047\053\053\053\056\050\054\050\050\054\051","\114\098\120\097\115\115\101\116\105\100\058\047\047\053\053\053\056\050\054\050\050\054\051","\114\098\120\097\115\115\101\116\105\100\058\047\047\053\053\053\056\050\054\050\050\054\051","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\048\054\053\050\051\050","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\048\054\053\049\056\051","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\048\054\053\050\048\056";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\048\054\053\055\053\049";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\048\054\053\054\056\048","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\048\054\053\055\050\049";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\048\054\053\048\053\049";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\048\054\052\057\057\053";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\048\054\053\048\049\056","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\056\057\049\051\053\049";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\049\051\048\050\052\056\056","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\049\051\048\050\052\051\056";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\049\051\048\050\052\054\053","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\054\050\053\055\055\050","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\054\050\053\055\053\049";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\054\050\053\055\054\051";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\054\048\054\049\054\057";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\054\048\054\050\049\048","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\054\050\051\056\049\051","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\054\050\051\056\048\051";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\054\050\051\056\049\049","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\055\050\053\052\054\051","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\056\051\052\057\050\051","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\050\048\050\056\052\057","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\055\050\054\049\049\054";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\055\050\053\054\055\049","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\055\050\053\055\048\054","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\056\052\048\052\054\048","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\056\052\048\052\056\048";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\056\056\048\056\056\056","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\056\056\050\049\049\053","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\056\056\050\049\052\052";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\056\056\050\049\051\049";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\051\048\056\054\052\057\056","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\056\056\049\054\057\053","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\056\056\049\055\050\051";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\057\050\057\052\050\053";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\057\050\057\051\053\051";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\051\051\057\048\052\056\055","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\057\050\057\051\057\057";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\051\051\056\057\054\056\051","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\049\051\052\056\053\051\057","\114\098\120\097\115\115\101\116\105\100\058\047\047\053\055\048\054\056\051\055\050\048\053";"\114\098\120\097\115\115\101\116\105\100\058\047\047\053\055\048\054\056\051\054\057\054\048";"\114\098\120\097\115\115\101\116\105\100\058\047\047\053\055\048\054\056\051\054\055\052\054";"\114\098\120\097\115\115\101\116\105\100\058\047\047\051\055\054\048\054\056\049\052","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\048\056\052\057\053\053\048\049\050","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\048\056\052\057\053\053\052\056\056","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\048\056\052\057\057\054\057\055\054";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\048\056\052\057\057\055\051\050\054";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\048\056\052\057\057\054\053\051\054","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\048\056\052\057\054\053\051\053\054";"\114\098\120\097\115\115\101\116\105\100\058\047\047\053\049\057\048\057\055\057\057\052";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\055\057\053\055\053\054"};Mesh={"\114\098\120\097\115\115\101\116\105\100\058\047\047\051\055\054\048\054\056\049\052";"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\050\055\057\053\054\053\048"}}local e=game:GetService("\067\111\110\116\101\110\116\080\114\111\118\105\100\101\114")local O=game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")local function o(C)for C,O in pairs(C)do for O,o in pairs(O)do local D if C=="\084\101\120\116\117\114\101"then D=Instance.new("\068\101\099\097\108")D.Texture=o elseif C=="\077\101\115\104"then D=Instance.new("\083\112\101\099\105\097\108\077\101\115\104")D.MeshId=o elseif C=="\065\110\105\109\097\116\105\111\110"then D=Instance.new("\065\110\105\109\097\116\105\111\110")D.AnimationId=o end;(coroutine.wrap(function()if D then e:PreloadAsync({D})end end))()end end end o(C)local D=require((O:WaitForChild("\080\114\111\106\101\099\116")):WaitForChild("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101"))local t={Texture={}}for C,e in pairs(D:GetResource("\071\097\109\101\068\097\116\097\046\073\116\101\109\046\065\116\116\097\099\107\115"))do table.insert(t.Texture,"\114\098\120\097\115\115\101\116\105\100\058\047\047"..tostring(e.Icon))end o(t)local R={Texture={}}for C,e in pairs(D:GetResource("\071\097\109\101\068\097\116\097\046\073\116\101\109\046\066\108\111\120\107\105\110\115"))do table.insert(R.Texture,e.LockedImage)table.insert(R.Texture,e.UnlockedImage)end o(R)local P={Texture={};Mesh={}}for C,e in pairs(D:GetResource("\071\097\109\101\068\097\116\097\046\073\116\101\109\046\073\116\101\109\115"))do if e.TextureId then table.insert(P.Texture,"\114\098\120\097\115\115\101\116\105\100\058\047\047"..e.TextureId)end if e.MeshId then table.insert(P.Mesh,"\114\098\120\097\115\115\101\116\105\100\058\047\047"..e.MeshId)end end o(P)local w={Texture={}}for C,e in pairs(D:GetResource("\071\097\109\101\068\097\116\097\046\073\116\101\109\046\080\101\116\083\107\105\110\084\101\120\116\117\114\101\115"))do for C,e in pairs(e)do if e~=0 then table.insert(w.Texture,"\114\098\120\097\115\115\101\116\105\100\058\047\047"..tostring(e))end end end o(w)local i={Texture={}}for C,e in pairs(D:GetResource("\071\097\109\101\068\097\116\097\046\073\116\101\109\046\083\116\111\114\101"))do table.insert(i.Texture,e.IconId)end o(i)local x={Animation={}}for C,e in pairs((D:GetResource("\069\110\118\105\114\111\110\109\101\110\116\067\111\110\102\105\103\117\114\097\116\105\111\110")).Animations)do table.insert(x.Animation,e)end o(x)local M=D:GetObjectReference("\071\097\109\101\068\097\116\097\046\073\116\101\109\046\073\116\101\109\115")for C,O in pairs(M:GetChildren())do(coroutine.wrap(function()e:PreloadAsync({O})end))()end M.ChildAdded:Connect(function(C)e:PreloadAsync({C})end)local r=D:GetObjectReference("\080\101\116\077\111\100\101\108\115")e:PreloadAsync({r})
--[[
TheNexusAvenger

Preloads content on the client.
--]]

local ASSETS_TO_PRELOAD = {
    Texture = {
        --Wide text button.
        "rbxassetid://5558262263",
        "rbxassetid://5558312338",
        "rbxassetid://5558312888",

        --Map images.
        "rbxassetid://131315995",
        "rbxassetid://131316239",
        "rbxassetid://130857246",
        "rbxassetid://130857246",
        "rbxassetid://132785906",
        "rbxassetid://130857373",
        "rbxassetid://130857355",
        "rbxassetid://130857360",
        "rbxassetid://130857349",
        "rbxassetid://130857451",
        "rbxassetid://130857442",
        "rbxassetid://130857424",
        "rbxassetid://131348500",
        "rbxassetid://131348539",

        --Bottom bar background.
        "rbxassetid://132724864",

        --Center stats.
        "rbxassetid://132724931",
        "rbxassetid://132725297",
        "rbxassetid://132725332",
        "rbxassetid://132725297",
        "rbxassetid://132725076",
        "rbxassetid://132725125",
        "rbxassetid://132725249",
        "rbxassetid://132725193",
        "rbxassetid://132725160",
        "rbxassetid://133251112",

        --Map containers.
        "rbxassetid://132725398",
        "rbxassetid://131274595",
        "rbxassetid://131275262",
        "rbxassetid://131274953",
        "rbxassetid://131302488",
        "rbxassetid://131302438",
        "rbxassetid://131302465",
        "rbxassetid://131275208",
        "rbxassetid://131275187",
        "rbxassetid://131275204",
        "rbxassetid://131275165",
        "rbxassetid://131275136",
        "rbxassetid://131275148",

        --Corner buttons.
        "rbxassetid://132724720",
        "rbxassetid://132718207",
        "rbxassetid://132717837",
        "rbxassetid://132717848",
        "rbxassetid://132718288",
        "rbxassetid://132717962",
        "rbxassetid://132717976",
        "rbxassetid://132718167",
        "rbxassetid://132717791",
        "rbxassetid://132717809",
        "rbxassetid://132718256",
        "rbxassetid://132717904",
        "rbxassetid://132717928",

        --Inventory
        "rbxassetid://131461868",
        "rbxassetid://5558262263",
        "rbxassetid://131302488",
        "rbxassetid://131302438",
        "rbxassetid://131302465",
        "rbxassetid://131462032",
        "rbxassetid://131490682",
        "rbxassetid://131462130",
        "rbxassetid://131489625",
        "rbxassetid://131490729",
        "rbxassetid://131490698",
        "rbxassetid://131490717",
        "rbxassetid://5655605683",
        "rbxassetid://132073816",
        "rbxassetid://132064980",
        "rbxassetid://132064800",
        "rbxassetid://132065130",
        "rbxassetid://132064980",
        "rbxassetid://132064940",
        "rbxassetid://132064966",
        "rbxassetid://132064800",
        "rbxassetid://132064800",
        "rbxassetid://132064768",
        "rbxassetid://132065130",
        "rbxassetid://132065075",
        "rbxassetid://132065098",
        "rbxassetid://131490682",
        "rbxassetid://131528533",
        "rbxassetid://131528494",
        "rbxassetid://131528543",
        "rbxassetid://132064980",
        "rbxassetid://132064940",
        "rbxassetid://132064966",
        "rbxassetid://131528431",
        "rbxassetid://131528431",
        "rbxassetid://131528420",
        "rbxassetid://131503240",
        "rbxassetid://131502836",
        "rbxassetid://131462464",
        "rbxassetid://131462433",
        "rbxassetid://131462447",
        "rbxassetid://131462518",
        "rbxassetid://131462503",
        "rbxassetid://131462515",
        "rbxassetid://5558262263",
        "rbxassetid://5558262263",
        "rbxassetid://5558262263",
        "rbxassetid://132065232",
        "rbxassetid://132065183",
        "rbxassetid://132065208",
        "rbxassetid://132065751",
        "rbxassetid://132065680",
        "rbxassetid://132065721",
        "rbxassetid://132065051",
        "rbxassetid://132064995",
        "rbxassetid://132065018",

        --Store.
        "rbxassetid://132891351",
        "rbxassetid://131302488",
        "rbxassetid://131302438",
        "rbxassetid://131302465",
        "rbxassetid://132625772",
        "rbxassetid://132625751",
        "rbxassetid://132625763",
        "rbxassetid://132606169",
        "rbxassetid://132606210",
        "rbxassetid://132623813",
        "rbxassetid://132623803",
        "rbxassetid://132623811",

        --Active quest.
        "rbxassetid://132725463",

        --Collectables view.
        "rbxassetid://132834923",
        "rbxassetid://132202849",

        --NPC dialogs.
        "rbxassetid://132726116",
        "rbxassetid://132725671",
        "rbxassetid://132725706",
        "rbxassetid://132840460",
        "rbxassetid://132840480",

        --Quests log.
        "rbxassetid://132880888",
        "rbxassetid://132882115",
        "rbxassetid://132882144",
        "rbxassetid://132882131",
        "rbxassetid://133086498",
        "rbxassetid://132881695",
        "rbxassetid://132881723",

        --Side tools.
        "rbxassetid://132929425",
        "rbxassetid://132929353",
        "rbxassetid://133390487",
        "rbxassetid://132929399",
        "rbxassetid://133389683",
        "rbxassetid://131348539",

        --Scrollbar.
        "rbxassetid://5706837205",
        "rbxassetid://5706836960",
        "rbxassetid://5706836746",

        --Pumpkin attack.
        "rbxassetid://37606814",

        --Boost attack.
        "rbxassetid://1084955012",
        "rbxassetid://1084955488",

        --Heal attack.
        "rbxassetid://1084996976",
        "rbxassetid://1084997326",
        "rbxassetid://1084996536",
        "rbxassetid://1084965356",

        --Spider web attack.
        "rbxassetid://519097994",

        --Sword attack.
        "rbxassetid://132795756",
    },

    Mesh = {
        --Pumpkin attack.
        "rbxassetid://37606814",

        --Sword attack.
        "rbxassetid://132795650",
    },
}



local ContentProvider = game:GetService("ContentProvider")
local ReplicatedStorage = game:GetService("ReplicatedStorage")



--[[
Preloads a set of assets.
--]]
local function PreloadAssets(Assets)
    for Type,SubAssets in pairs(Assets) do
        for _,AssetId in pairs(SubAssets) do
            --Create the asset item.
            local AssetItem
            if Type == "Texture" then
                AssetItem = Instance.new("Decal")
                AssetItem.Texture = AssetId
            elseif Type == "Mesh" then
                AssetItem = Instance.new("SpecialMesh")
                AssetItem.MeshId = AssetId
            elseif Type == "Animation" then
                AssetItem = Instance.new("Animation")
                AssetItem.AnimationId = AssetId
            end

            --Load the asset.
            coroutine.wrap(function()
                if AssetItem then
                    ContentProvider:PreloadAsync({AssetItem})
                end
            end)()
        end
    end
end



--Preload the main assets.
PreloadAssets(ASSETS_TO_PRELOAD)

--Preload the attacks.
local ReplicatedStorageProject = require(ReplicatedStorage:WaitForChild("Project"):WaitForChild("ReplicatedStorage"))
local AttacksAssets = {
    Texture = {},
}
for _,Attack in pairs(ReplicatedStorageProject:GetResource("GameData.Item.Attacks")) do
    table.insert(AttacksAssets.Texture,"rbxassetid://"..tostring(Attack.Icon))
end
PreloadAssets(AttacksAssets)

--Preload the bloxkins.
local BloxkinAssets = {
    Texture = {},
}
for _,Bloxkin in pairs(ReplicatedStorageProject:GetResource("GameData.Item.Bloxkins")) do
    table.insert(BloxkinAssets.Texture,Bloxkin.LockedImage)
    table.insert(BloxkinAssets.Texture,Bloxkin.UnlockedImage)
end
PreloadAssets(BloxkinAssets)

--Preload the items.
local ItemAssets = {
    Texture = {},
    Mesh = {},
}
for _,Item in pairs(ReplicatedStorageProject:GetResource("GameData.Item.Items")) do
    if Item.TextureId then
        table.insert(ItemAssets.Texture,"rbxassetid://"..Item.TextureId)
    end
    if Item.MeshId then
        table.insert(ItemAssets.Mesh,"rbxassetid://"..Item.MeshId)
    end
end
PreloadAssets(ItemAssets)

--Preload the pet textures.
local PetTextures = {
    Texture = {},
}
for _,Item in pairs(ReplicatedStorageProject:GetResource("GameData.Item.PetSkinTextures")) do
    for _,Id in pairs(Item) do
        if Id ~= 0 then
            table.insert(PetTextures.Texture,"rbxassetid://"..tostring(Id))
        end
    end
end
PreloadAssets(PetTextures)

--Preload the store textures.
local StoreTextures = {
    Texture = {},
}
for _,Item in pairs(ReplicatedStorageProject:GetResource("GameData.Item.Store")) do
    table.insert(StoreTextures.Texture,Item.IconId)
end
PreloadAssets(StoreTextures)

--Load the animations.
local Animations = {
    Animation = {},
}
for _,AnimationId in pairs(ReplicatedStorageProject:GetResource("EnvironmentConfiguration").Animations) do
    table.insert(Animations.Animation,AnimationId)
end
PreloadAssets(Animations)

--Preload the item models.
local ItemsModule = ReplicatedStorageProject:GetObjectReference("GameData.Item.Items")
for _,Model in pairs(ItemsModule:GetChildren()) do
    coroutine.wrap(function()
        ContentProvider:PreloadAsync({Model})
    end)()
end
ItemsModule.ChildAdded:Connect(function(Model)
    ContentProvider:PreloadAsync({Model})
end)

--Preload the pet models.
local PetModels = ReplicatedStorageProject:GetObjectReference("PetModels")
ContentProvider:PreloadAsync({PetModels})