Welding, equipping clothing to characters

Hey! Sorry if im in the wrong category i’m honestly not sure how this all works, i know that scripting is involved tho!

We all know the game royale high. Players are able to equip different clothes/shoes/accessories.

How does that work? Would you need to first weld for example, hair to a head? Shirt to a torso? Then would the scripting be involved on actually making it so the player can equip these parts? I’m thinking the scripting involves actually changing the body parts with the clothes welded onto it as opposed to the actual clothes changing? I could be very wrong.

I’m super confused as to how this all works and would love some help! Thank you.

1 Like

To change a player’s shirt is easy you just need to change the shirt object in the player like this:

Player.Character.Shirt.ShirtTemplate = "rbxassetid://assetid here" -- Change assetid here to the shirt id.

EDIT: If you want 3D clothing you have to weld it on to the player.

Hey, i was talking about 3D models. Thanks tho

Also Roblox’s humanoids have an AddAccessory function that adds an accessory to a player.
It must also be an Accessory Object Class. To get an accessory you can use an accessory inserter plugin.

To add a custom accessory you need to weld it like this:

local Weld = Instance.new("Weld")
Weld.Part0 = Body Part -- Replace body part with the body part of player
Weld.Part1 = Object -- Replace object with the object that you want to add to the player
1 Like

Ah i see, so it would first need to be welded onto the body part, needs to be classed as an accessory and then scripted?

The Accessory Instance is Roblox’s catalog items. Welding custom things doesn’t need to be an accessory.

2 Likes