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

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