Hello.
I’ve been trying to find a way to add hats to an already playing character with just the catalog ID but haven’t found out how to yet.
Does anyone know how or what I could use?
Hello.
I’ve been trying to find a way to add hats to an already playing character with just the catalog ID but haven’t found out how to yet.
Does anyone know how or what I could use?
game:GetService("InsertService"):LoadAsset(ID)
returns a model containing the accessory
Humanoid:AddAccessory(accessory)
adds an accessory to the humanoid
This is the only method i know
The full function is:
local insertService = game:GetService("InsertService")
local function GetAccessory(id)
return insertService:LoadAsset(id):FindFirstChildOfClass("Accessory")
end
local function AddAccessory(player, id)
player.Character.Humanoid:AddAccessory(GetAccessory(id))
end