local function a(a)if a and a:IsA("\065\099\099\101\115\115\111\114\121")then local w=a:WaitForChild("\072\097\110\100\108\101",5)if w and w:IsA("\080\097\114\116")then local a=w:WaitForChild("\066\111\100\121\066\097\099\107\065\116\116\097\099\104\109\101\110\116",5)if a and a:IsA("\065\116\116\097\099\104\109\101\110\116")then return true end local j=w:WaitForChild("\087\097\105\115\116\066\097\099\107\065\116\116\097\099\104\109\101\110\116",5)if j and j: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,j in ipairs(w:GetChildren())do(coroutine.wrap(function()if a(j)then j:Destroy()end end))()end end local j=nil local function O(O)w(O)j=O.DescendantAdded:Connect(function(w)(coroutine.wrap(function()if a(w)then w:Destroy()end end))()end)end local function T(a)if j then j:Disconnect()j=nil end end
-- Remove back accessories since they frequently block the camera
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
