AddAccesory error

so im trying to add an accessory to the player but whenever I do it says this:

game.Players.PlayerAdded:Connect(function(plr)
	plr.CharacterAdded:Connect(function()
		local leaderstats = plr:WaitForChild("leaderstats")
		local race = leaderstats.race
		local PlayerHorns = leaderstats.DemonHorns
		local chr = plr.Character
		local Humanoid = chr.PrimaryPart
		local DemonHorns = {
			"FrontHorns",
			"FrontSideHorns",
			"FrontHorns"
		}
		
		race.Changed:connect(function()
			if race.Value == "Demon" then
				local randomhorns = DemonHorns[math.random(1, #DemonHorns)]
				print(randomhorns)
				PlayerHorns.Value = randomhorns
				
				for i,v in game:GetService("ReplicatedStorage").DemonTypes.Horn:GetChildren() do
					if v.Name == randomhorns then
						local vclone = v:Clone()
						vclone.Parent = plr.Character
						Humanoid:AddAccessory(vclone)
					
					end
				end
			end
		end)
	end)
end)

Your issue you’re facing is that you’re getting the primary part of the character which is always set to the Head and not the humanoid which you can run the function on.

You would need to swap it out preferably with:

local Humanoid = chr:FindFirstChildOfClass(“Humanoid”)