Hey everyone, I have problem with this script, basically it should add custom accessory to a player. Any idea how to fix that?

local playerModel = game.Players.LocalPlayer.Character
local humanoid = playerModel:WaitForChild("Humanoid")

script.Parent.MouseButton1Click:Connect(function()
if humanoid then
playerModel:AddAccessory(game.ReplicatedStorage.DarkWings)

end
end)