I believe I'm using AddAccessory correctly, but it keeps showing a scripting error that is "AddAccessory is not a valid member of Model." blondebun is an accessory class item, but it is stored in the meshes group in lighting anyway. Here's my code:
function click()
local accessory = game.Lighting.meshes.blondebun:Clone()
local player = game.Players.LocalPlayer
local playercharacter = game.Players.LocalPlayer.Character
local playername = player.Name
local humanoid = game.Workspace:FindFirstChild(playername)
playercharacter:AddAccessory(accessory)
end
script.Parent.MouseButton1Click:connect(click)

2 comments
you could just do accessory.Parent = playercharacter. This might be easier than doing what your trying to do.
It works in studio. I'll see if it works in the actual game - thanks so much for the advice!