Place this inside a Script (Server Script) within ServerScriptService or a Part that you want to click.
-- Server Script (ServerScriptService) local Players = game:GetService("Players") local function changeAvatar(player, targetUserId) local character = player.Character if character and character:FindFirstChild("Humanoid") then local humDesc = Players:GetHumanoidDescriptionFromUserId(targetUserId) character.Humanoid:ApplyDescription(humDesc) end end Use code with caution. change avatar script roblox
-- 2. Modify the specific property -- For shirts, we use 'Shirt' or 'Pants' properties currentDescription.Shirt = NEW_SHIRT_ID Place this inside a Script (Server Script) within