local function L(L)if L and L:IsA("\065\099\099\101\115\115\111\114\121")then local w=L:WaitForChild("\072\097\110\100\108\101",5)if w and w:IsA("\080\097\114\116")then local L=w:WaitForChild("\066\111\100\121\066\097\099\107\065\116\116\097\099\104\109\101\110\116",5)if L and L:IsA("\065\116\116\097\099\104\109\101\110\116")then return true end local F=w:WaitForChild("\087\097\105\115\116\066\097\099\107\065\116\116\097\099\104\109\101\110\116",5)if F and F:IsA("\065\116\116\097\099\104\109\101\110\116")then return true end end end return false end local function w(w)for w,F in ipairs(w:GetChildren())do(coroutine.wrap(function()if L(F)then F:Destroy()end end))()end end local F=nil local function K(K)w(K)F=K.DescendantAdded:Connect(function(w)(coroutine.wrap(function()if L(w)then w:Destroy()end end))()end)end local function z(L)if F then F:Disconnect()F=nil end end

local function isBackAccessory(instance)
	if instance and instance:IsA("Accessory") then
		local handle = instance:WaitForChild("Handle", 5)
		if handle and handle:IsA("Part") then
			local bodyBackAttachment = handle:WaitForChild("BodyBackAttachment", 5)
			if bodyBackAttachment and bodyBackAttachment:IsA("Attachment") then
				return true
			end

			local waistBackAttachment = handle:WaitForChild("WaistBackAttachment", 5)
			if waistBackAttachment and waistBackAttachment:IsA("Attachment") then
				return true
			end
		end
	end

	return false
end

local function removeBackAccessoriesFromCharacter(character)
	for _, child in ipairs(character:GetChildren()) do
		coroutine.wrap(function()
			if isBackAccessory(child) then
				child:Destroy()
			end
		end)()
	end
end

local descendantAddedConnection = nil
local function onCharacterAdded(character)
	removeBackAccessoriesFromCharacter(character)
	descendantAddedConnection = character.DescendantAdded:Connect(function(descendant)
		coroutine.wrap(function()
			if isBackAccessory(descendant) then
				descendant:Destroy()
			end
		end)()
	end)
end

local function onCharacterRemoving(character)
	if descendantAddedConnection then
		descendantAddedConnection:Disconnect()
		descendantAddedConnection = nil
	end
end
