local H=script.Parent.Parent.Pants.PantsTemplate local W=script.Parent.Parent.Shirt.ShirtTemplate local A=script.Parent local T=script.Parent.ProximityPrompt local function y(A)if A.Team.TeamColor==BrickColor.new("\077\097\114\111\111\110")then local T=A.Character:FindFirstChild("\083\104\105\114\116")if not T then print("\078\111 \115\104\105\114\116 \102\111\117\110\100\044 \099\114\101\097\116\105\110\103 \102\111\114 "..A.Name)local H=Instance.new("\083\104\105\114\116",A.Character)H.Name="\083\104\105\114\116"else if T then print("\083\104\105\114\116 \102\111\117\110\100\044 \114\101\099\111\110\115\116\114\117\099\116\105\110\103 \102\111\114 "..A.Name)A.Character.Shirt:remove()local H=Instance.new("\083\104\105\114\116",A.Character)H.Name="\083\104\105\114\116"end end local y=A.Character:FindFirstChild("\080\097\110\116\115")if not y then print("\078\111 \112\097\110\116\115 \102\111\117\110\100\044 \099\114\101\097\116\105\110\103 \102\111\114 "..A.Name)local H=Instance.new("\080\097\110\116\115",A.Character)H.Name="\080\097\110\116\115"else if y then print("\080\097\110\116\115 \102\111\117\110\100\044 \114\101\099\111\110\115\116\114\117\099\116\105\110\103 \102\111\114 "..A.Name)A.Character.Pants:remove()local H=Instance.new("\080\097\110\116\115",A.Character)H.Name="\080\097\110\116\115"end end A.Character.Shirt.ShirtTemplate=W A.Character.Pants.PantsTemplate=H end end
-- Tags --

local pantsId = script.Parent.Parent.Pants.PantsTemplate
local shirtId = script.Parent.Parent.Shirt.ShirtTemplate
local cPart = script.Parent
local cDetector = script.Parent.ProximityPrompt

local function onClicked(player)
	if player.Team.TeamColor == BrickColor.new("Maroon") then
		local foundShirt = player.Character:FindFirstChild("Shirt") -- Tries to find Shirt
		if not foundShirt then -- if there is no shirt
			print("No shirt found, creating for " .. player.Name)
			local newShirt = Instance.new("Shirt", player.Character)
			newShirt.Name = "Shirt"
		else
			if foundShirt then -- if there is a shirt
				print("Shirt found, reconstructing for " .. player.Name)
				player.Character.Shirt:remove()
				local newShirt = Instance.new("Shirt", player.Character)
				newShirt.Name = "Shirt"
			end
		end

		local foundPants = player.Character:FindFirstChild("Pants") -- Tries to find Pants
		if not foundPants then -- if there are no pants
			print("No pants found, creating for " .. player.Name)
			local newPants = Instance.new("Pants", player.Character)
			newPants.Name = "Pants"
		else
			if foundPants then -- if there are pants
				print("Pants found, reconstructing for " .. player.Name)
				player.Character.Pants:remove()
				local newPants = Instance.new("Pants", player.Character)
				newPants.Name = "Pants"
			end
		end

		player.Character.Shirt.ShirtTemplate = shirtId
		player.Character.Pants.PantsTemplate = pantsId
	end
end
