My game turns R15 after I use Humanoid:RemoveAccessories

Hello, the bug is when I add the following code, my game becomes R16 (originally R5)

	local character = Player.Character or Player.CharacterAdded:Wait()
	
	local function updateHumanoid()
		self.humanoid = character:WaitForChild("Humanoid")
		if next(self.humanoid:GetAccessories()) then
			self.humanoid:RemoveAccessories()
		end
	end
	self.character = character
	if waitForChild then updateHumanoid() else task.spawn(updateHumanoid) end

Screenshot:
image
Place:
Bug report character.rbxl (53.7 KB)

2 Likes