Need Accessory Assistance

Hello Devforum, I am trying to add an accessory to a player by script, And my issue is there not appearing.

I have made sure there is the character and they are 100%. They’re not there physically though.

I’m using a LocalScript in StarterCharacterScripts

UPDATE: ive looked more into it and found that they are on the map, just not attached to the back, thats my issue

1 Like

Seems like you misspelled KeyCode. It should be keyCode.KeyCode. I would also try parenting the accessory to the character first and then using :AddAccessory after, but I highly recommend using a remote event for that.

1 Like

Ive fixed that just now, Nothing different happened. Wings still not appearing.

Ive also looked further into it and noticed that the wings are in the map Physically just not attached. theres an attachment in the handle

1 Like

That is the issue. You can’t add accessories locally. Do it on the server.

1 Like

Tried that, Now it doesnt even add the wings my problem was that the wings wont weld to the player

1 Like

Did you use any remote events?

1 Like

I have not used any remote events

1 Like

This is your issue. Use remote events, client is responsible for input and the server as the output.

1 Like

I have made an event and again, It doesn’t even add the wings anymore

all variables in the function script are correct and I have double-checked them

1 Like

facepalm

Why. Are you doing client stuffs on the server? OF COURSE IT DID NOT WORK BECAUSE YOU ARE DOING LOCAL PLAYER ON A SERVER SCRIPT. You should do those in local script.

1 Like

Swapped to a local script, No Difference

1 Like

I’m sorry, but if you’re just gonna copy what I said without your basic scripting knowledges, I’m afraid I can’t help you.

1 Like