ProximityPrompt.Triggered:Connect(function(E)local S=E.Character local c=S:WaitForChild("\072\101\097\100")ProximityPrompt.ActionText=""if S:FindFirstChild(script.Parent.Parent.Parent.Name)then S[script.Parent.Parent.Parent.Name]:Destroy()else local E=Armor:Clone()E:SetPrimaryPartCFrame(c.CFrame)E.PrimaryPart:Destroy()ProximityPrompt.ActionText=""for E,S in pairs(E:GetChildren())do if S:IsA("\066\097\115\101\080\097\114\116")then WeldParts(c,S)S.CanCollide=false S.Anchored=false end end E.Parent=S end end)

ProximityPrompt.Triggered:Connect(function(Player)
	local Character = Player.Character
	local Head = Character:WaitForChild("Head")
	ProximityPrompt.ActionText = ""
	if Character:FindFirstChild(script.Parent.Parent.Parent.Name) then
		Character[script.Parent.Parent.Parent.Name]:Destroy()
	else
		local NewArmor = Armor:Clone()
		NewArmor:SetPrimaryPartCFrame(Head.CFrame)
		NewArmor.PrimaryPart:Destroy()
		ProximityPrompt.ActionText = ""
		for _, part in pairs (NewArmor:GetChildren()) do
			if part:IsA("BasePart") then
				WeldParts(Head, part)
				part.CanCollide = false
				part.Anchored = false
			end
		end
		NewArmor.Parent = Character
	end
end)
