RolePlay Character Changer Help

I want to be able to add any attachment to a Player with only an asset ID is it posible and if yes how do I do it?

Yes, it can be done with InsertService.

1 Like

Can you give me an example code. (im not that good at reading the wiki)

NVM I figured it out thanks!

found this on roblox

local assetId = 257489726
local InsertService = game:GetService("InsertService")
local model = InsertService:LoadAsset(assetId)
model.Parent = workspace

You’re welcome, happy to help ^ - ^
Note: Some objects like faces, pants, t-shirts and shirts do not need to use this as the same id can be used to load it.

1 Like

Yes Ik I can use decals and the shirt id thing

Decal and faces from the catalog is not the same, if you put the id of a decal from the toolbox it will give an error

1 Like

hmmmm then how would I do that???

You can tell by looking at the AssetType of the object.

MarketplaceService = game:GetService("MarketplaceService")
local success, Info = pcall(function()
    return MarketplaceService:GetProductInfo(AssetId)
end)
if success and Info then
    if Info.AssetTypeId == 13 then
        print("It's a decal!")
    elseif Info.AssetTypeId == 18 then
        print("It's a face!")
    end
end
2 Likes