学习
引擎类
ShirtGraphic

*此内容使用人工智能(Beta)翻译,可能包含错误。若要查看英文页面,请点按 此处


概要
属性
Graphic:ContentId
继承成员

API 参考
属性
Color3
读取并联
功能: AvatarAppearance
ShirtGraphic.Color3:Color3

Graphic
读取并联
功能: AvatarAppearance
ShirtGraphic.Graphic:ContentId
代码示例
图形
local InsertService = game:GetService("InsertService")
local Workspace = game:GetService("Workspace")
local webURL = "https://www.roblox.com/catalog/2591161/Sword-Fight-on-the-Heights-Ring-of-Fire-T-Shirt"
local assetId = tonumber(string.match(webURL, "%d+") or 0) -- 提取数字
local success, model = pcall(function()
return InsertService:LoadAsset(assetId)
end)
if success then
model.Parent = Workspace
end

©2026 Roblox Corporation、Roblox、Roblox 标志及 Powering Imagination 是我们在美国及其他国家或地区的注册与未注册商标。