so I want when the player avatar loads into the rig, with the rig model size of 3 then the accessories will adjust, but for some reason mine doesn’t work.
any solution?
local randomString = "AamTum"
Players = game:GetService("Players")
local ID = Players:GetUserIdFromNameAsync(randomString)
local usr = Players:GetHumanoidDescriptionFromUserId(ID)
script.Parent.Humanoid:ApplyDescription(usr)
Try to adjust the Accessory objects to match the scale of the character.
Also there is script
local randomString = "AamTum"
local Players = game:GetService("Players")
local ID = Players:GetUserIdFromNameAsync(randomString)
local usr = Players:GetHumanoidDescriptionFromUserId(ID)
-- Apply the description to the rig
script.Parent.Humanoid:ApplyDescription(usr)
-- Scale the accessories to match the model's scale (in this case, 3)
local scaleFactor = 3 -- Since your model is already scaled to 3
for _, accessory in pairs(script.Parent:GetChildren()) do
if accessory:IsA("Accessory") then
-- Get the handle of the accessory
local handle = accessory:FindFirstChild("Handle")
if handle then
handle.Size = handle.Size * scaleFactor
handle.Mesh.Scale = handle.Mesh.Scale * scaleFactor
end
end
end