Introduction
Hey everyone !
Today, i’m going to show you how to properly create and do an accessory step by step to entirely customise your characters !
I decided to do this tutorial because, a lot of beginners developers are wondering how to do it and ask me for help, and currently there is no tutorial about it so… let’s start !
Step 1 - Create the accessory
In case if you not already have a dummy character, here is the file for the R6 classic roblox character.
R6 Character.rbxl (29,7 Ko)
- Add an “Accessory” into the workspace
- Add a “Part” into the accessory and change his properties:
Name: “Handle”
Transparency: 1
Size: (0.5, 0.5, 0.5)
Cast Shadows: False
Locked: True
Can Collide: False
Anchored: FalseHere you go
Step 2 - Attachments
Alright so, this is an important part of the accessory creation… the attachments.
First, let’s check out the body parts of your character, each bodyparts should already contain an attachment.
In my case (the character you probably downloaded at step 1), there is no attachments, so we need to create one.Add an “Attachment” in the body part of your choice and rename it how you want, the name need to be unique, there shouldn’t be multiple attachment with the same name anywhere in any bodypart of your character.
The attachment your using/creating in a body part will be where the accessory will be automaticaly placed.
So if your using a attachment that is in the left leg for example, the accessory will be placed on the left leg.Once you created/choosed the attachment of the bodypart of your choice, you can duplicate it (Ctrl + D), and put the duplicated attachment into the “Handle” part of your accessory.
Now, let’s put the accessory into the character and hop^… the accessory should be automaticaly replaced at your attachment position.
From here, 2 new object were automaticaly created into the “Handle” part, “OriginalSize” and “AccessoryWeld”.
The original size is the original size of the “Handle” part.
The AccessoryWeld is the object that make your accessory get weld to the bodypart.
You don’t need to change anything, don’t deleted them tho.When the accessory is in the workspace, a “TouchInterest” object can be automaticaly be added into the Handle part.
This is the object that allow the accessory to be automaticaly moved into a character when someone is walking on it.
Step 3 - Decorative (Part/Meshes) & Welds
This is the final step of the accessory creation !
Once your accessory is in the character model, and the “Handle” part get automaticaly placed to it’s attachment position, you can start doing the decorative parts !Before starting, you need to download this plugin if you not already have it.
Weld - Roblox
First, add a “Folder” into your “Handle” part, rename it however you want. This is where you will put all your decorative parts and meshes.
From here, you can start to import your meshes or create decorative parts and place them correctly how they need to be on the current character bodypart.
All decorative meshes and parts must to be Can Collide and Anchored to False
Example: if you choosed the Head body part, you can place your hairs, helmet ect…Once you placed all your decorations correctly, here come the time to weld everything !
Select the “Handle” part of your accessory, then hold press the “Crtl” keyboard button and select all your decorative parts/meshes.
When everythings selected, go into the “Plugin” tab, then click the “Weld All” button.
This is welding all sellected parts together without changing their position and rotation like the classic weld object do.Well done, you finished the tutorial !
From here, you can move your accessory from the character to the workspace then re move it into the character, to check if everything work correctly.Here is the Roblox Studio file where i’ve made the tutorial accessory, it maybe can help you to better understand.
Accessory.rbxl (32,4 Ko)
Performances
Having too much parts or meshes in your accessories can decrease the game performances while moving as there is too much objects movements at same time.
So take care to don’t put too much parts or meshes into your accessories.In case if you’re doing your accessories using lot of parts, i recomend to select all parts of the same color then “Right mouse click” and “Export Selection” from studio to your computer, then re-import it in the studio as a “Mesh Part”.
So you’re going to have only one mesh instead of multiple parts which can avoid to decrease performance when your character is moving.
Conclusion
Creating accessories can be usefull in most of popular games type like shooter games, Mmo rpg games and more.
It allow you to fully customise your characters how you want.
It also is usefull in programming part, as you only need to remove, clone and put accessories in your character which allow you to update your character skin in real time.