How to Create an accessory that can be equipped from backpack

  1. I would like to create an accessory that can be placed in the the backpack and then clicked to equip it.
  2. The problem i am running in to is that there is no TextureId property for accessories, so they wont show up in the backpack
    3.I have tried parenting accessories to tools, but then they ignore the attachment that I have set up in the accessory. I know the accessories are fine because when I parent them manually (dragging them into the character on the server client) to the character they appear correctly. I have also placed an image label and image button into the accessory, but am not sure how to script it so that it appears in the GUI.

Thanks much, I hope I was clear enough! :slight_smile:Armor

1 Like

Can you provide some sample code for this?

I can figure out how to use the API to clone the accessory to the character, but how do i get an image button or image label into my backpack?

Use a surfaceGUI, and put a frame, and then an imagelabel;

Surface Gui Demo

Sorry, i didn’t answer your question! Everything i have done so far i have deleted :frowning: What property is it in a tool that allows it to be seen in your backpack? Can the property be added to an ImageButton or Label?

I will try that out immediately! Thank you ! :slight_smile:

1 Like

Let me know if this worked, if this did not let me know as usual. Once you find a solution on this thread, mark it as a solution by hitting the green mark next to the post. Hope I helped!

1 Like

Here is what I tried that didn’t work :frowning: Here’s how it was parented. Or is it not to be parented to an object at all?

Please create a model of this, and enable copying, then send it here, so I can fix it up for you.

Here you go buddy https://www.roblox.com/catalog/03564744081/redirect

Thanks much!

1 Like

The reason it’s not showing up is because only Tools appear there; you’d have to put it in a tool and write a script to move the accessory to the player. I would write it but I’m currently out of the house atm.

So place it in a tool that doesnt equip, it just executes the script to clone the accessory to the character?

I am creating you a solution, please wait a minute. This solution does include what @Xiousa mentioned.

Will do! Sorry, just excited. I hadn’t thought about using a tool that I didnt equip :slight_smile:

Your issue was the image texture for the tool, you did not make a tool, this was an accessory, not a tool. You can take it on from now, and program it, but here is the tool itself. And here is a video of it, I’ve also welded everything together for you. If you move parts in it, the parts will unweld, so I recommend to use a weld script, or to manually weld them with the F3X plugin, or roblox tools.

Video;

And the tool!
The shield tool

2 Likes

Thank you :slight_smile: i was trying to not use Tools, as i can only have one of them equipped at a time. But I hadn’t thought about just using them as a container for the code to equip the accessory. Thank you guys so much, sorry I am new to coding :slight_smile:

All good! If this was a solution, make sure to press the checkmark next to the post I made, if not, keep looking for the solution! I wish you luck, have a good day!