Skip to content

Pants

Supported Class Animation & Avatar

Displays a Pants texture from the Roblox website to display on a Humanoid rig.

1 Nova members · 1 modern Roblox members not implemented yet

Description

The Pants object displays a pants texture from Roblox on a Humanoid rig. Pants cover the torso and legs, and will be covered by a Shirt on the torso. To be visible, a Pants must be a sibling of a Humanoid and have its PantsTemplate property set to an appropriate texture such as rbxassetid://86896501. The pants texture may be colorized using the Clothing.Color3 property.

Pants are automatically loaded on Player characters if their avatar is wearing one.

Inheritance

Object → Instance → CharacterAppearance → Clothing → Pants

Nova inheritance: Instance → CharacterAppearance → Clothing → Pants

Properties

PantsTemplate Supported Property Determines the texture of the Pants.
PantsTemplate: Content

Determines the texture of the Pants.

The content ID link pointing to the pants template hosted on Roblox.

This content ID is different than the website URL of the pants. It can be found by pasting the website URL of the pants into the PantsTemplate property in Studio. Alternatively, InsertService.LoadAsset() can be used to insert the pants into the workspace, for example:

local InsertService = game:GetService("InsertService")
local Workspace = game:GetService("Workspace")

local webURL = "https://www.roblox.com/catalog/1804739/Jeans"
local assetId = tonumber(string.match(webURL, "%d+") or 0)  -- Extract the number
local success, model = pcall(function()
    return InsertService:LoadAsset(assetId)
end)
if success then
    model.Parent = Workspace
end

For a Shirt object's template, see Shirt.ShirtTemplate.

Roblox reference signature
PantsTemplate: ContentId

Roblox documentation

Inherited members

Inherited from Clothing: 8 properties, 36 methods, 7 events. They are documented on the base class page.

1 modern Roblox member(s) are not implemented yet — expand to inspect

Members declared by Roblox's Pants class (or by a missing base class) that Nova does not expose. Use this list to scope a migration; the compatibility guide has the recommended workaround.

Properties

Member Signature Status Notes Flags
PantsTemplateContent PantsTemplateContent: Content Not yet Specifies the asset URI of the pants texture. —

Roblox reference: Pants

Generated from Nova's API dump and Roblox creator-docs. Nova-only members come from the engine's reflection metadata.