local L={}function L.RemoveHat(L)for a=1,#L,1 do if L[a].className=="\065\099\099\101\115\115\111\114\121"or L[a].className=="\072\097\116"then L[a]:remove()end end end function L.ShirtPant(L,a,h)if h.Current.Value<h.Max.Value then if a.Class.Current_Class.Value=="\078\111\110\101"then if L.Shirt.Value~=0 then(a.Character:WaitForChild("\083\104\105\114\116")):destroy();((game:GetService("\073\110\115\101\114\116\083\101\114\118\105\099\101")):LoadAsset(L.Shirt.Value)).Shirt.Parent=a.Character end if L.Pant.Value~=0 then(a.Character:WaitForChild("\080\097\110\116\115")):destroy();((game:GetService("\073\110\115\101\114\116\083\101\114\118\105\099\101")):LoadAsset(L.Pant.Value)).Pants.Parent=a.Character end end end end function L.GiveHat(L,a,h,u,B)if B.Current.Value<B.Max.Value then if h.Class.Current_Class.Value=="\078\111\110\101"then if L.Value~=""then local u=a.HATS[L.Value]:clone()u.Parent=h.Character local B=u:GetChildren()for a=1,#B,1 do if B[a]:IsA("\066\097\115\101\080\097\114\116")then local L=Instance.new("\087\101\108\100")L.Part0=u.Middle L.Part1=B[a]local h=CFrame.new(u.Middle.Position)local E=u.Middle.CFrame:inverse()*h local O=B[a].CFrame:inverse()*h L.C0=E L.C1=O L.Parent=u.Middle u.Middle.Transparency=1 end local E=Instance.new("\087\101\108\100")local O=L.Value:match("\066\065\067\075\080\065\067\075")if O==nil then E.Part0=h.Character.Head else E.Part0=h.Character.Torso end E.Part1=u.Middle E.C0=CFrame.new(0,0,0)E.Parent=E.Part0 end local E=u:GetChildren()for L=1,#E,1 do E[L].Anchored=false E[L].CanCollide=false end end end end end function L.giveclass(L,a,h,u,B)if L.Current.Value<L.Max.Value then if a.Class.Current_Class.Value=="\078\111\110\101"then a.Class.Current_Class.Value=h L.Current.Value=L.Current.Value+1 for L=1,#u,1 do(u[L]:Clone()).Parent=a.Backpack end B:Destroy()end end end return L
--// B_arocena
local _C = {}

function _C.RemoveHat(hts)
	for i = 1, #hts do
		if (hts[i].className == "Accessory") or (hts[i].className == "Hat") then
			hts[i]:remove()
		end
	end
end

function _C.ShirtPant(Outfit, Player, CClass)
	if CClass.Current.Value < CClass.Max.Value then
		if Player.Class.Current_Class.Value == "None" then
			if Outfit.Shirt.Value ~= 0 then
				Player.Character:WaitForChild("Shirt"):destroy()
				game:GetService("InsertService"):LoadAsset(Outfit.Shirt.Value).Shirt.Parent = Player.Character
			end
			if Outfit.Pant.Value ~= 0 then
				Player.Character:WaitForChild("Pants"):destroy()
				game:GetService("InsertService"):LoadAsset(Outfit.Pant.Value).Pants.Parent = Player.Character
			end
		end
	end
end

function _C.GiveHat(s, CSYS, Player, Outfit, CClass)
	if CClass.Current.Value < CClass.Max.Value then
		if Player.Class.Current_Class.Value == "None" then
			if s.Value ~= "" then
				local g = CSYS.HATS[s.Value]:clone()
				g.Parent = Player.Character
				local C = g:GetChildren()
				for i = 1, #C do
					if C[i]:IsA("BasePart") then
						local W = Instance.new("Weld")
						W.Part0 = g.Middle
						W.Part1 = C[i]
						local CJ = CFrame.new(g.Middle.Position)
						local C0 = g.Middle.CFrame:inverse() * CJ
						local C1 = C[i].CFrame:inverse() * CJ
						W.C0 = C0
						W.C1 = C1
						W.Parent = g.Middle
						g.Middle.Transparency = 1
					end
					local Y = Instance.new("Weld")
					local Result = (s.Value):match("BACKPACK")
					if Result == nil then
						Y.Part0 = Player.Character.Head
					else
						Y.Part0 = Player.Character.Torso
					end
					Y.Part1 = g.Middle
					Y.C0 = CFrame.new(0, 0, 0)
					Y.Parent = Y.Part0
				end

				local h = g:GetChildren()
				for i = 1, #h do
					h[i].Anchored = false
					h[i].CanCollide = false
				end
			end
		end
	end
end

function _C.giveclass(CClass, Player, CLNAME, Tools, Gui)
	if CClass.Current.Value < CClass.Max.Value then
		if Player.Class.Current_Class.Value == "None" then
			Player.Class.Current_Class.Value = CLNAME
			CClass.Current.Value = CClass.Current.Value + 1
			for i = 1, #Tools do
				Tools[i]:Clone().Parent = Player.Backpack
			end
			Gui:Destroy()
		end
	end
end

return _C
