# PublishService

Roblox Engine API class from Roblox Studio 0.744.0.7441077 (version-7aaa6838d36c4448).

- Inherits from, nearest first: [Instance](https://rapi.sleaze.dev/classes/Instance.md), [Object](https://rapi.sleaze.dev/classes/Object.md)
- Tags: Not creatable, Not replicated, Service
- Memory category: Instances
- HTML page: https://rapi.sleaze.dev/classes/PublishService/
- Roblox documentation: https://create.roblox.com/docs/reference/engine/classes/PublishService

A service that centralizes uploading assets to Roblox, including publishing cage mesh edits and creating assets or asset versions.

## Methods

### CreateAssetAndWaitForAssetId

```luau
PublishService:CreateAssetAndWaitForAssetId(instances: { Instance }, operationId: string, creatorType: Enum.AssetCreatorType, creatorId: number, assetType: string, name: string, description: string, expectedPrice: number? = 0, additionalParameters: { [string]: any }? = nil): number
```

- Tags: Yields, Roblox script security

### CreateAssetOrAssetVersionAndPollAssetWithTelemetryAsync

```luau
PublishService:CreateAssetOrAssetVersionAndPollAssetWithTelemetryAsync(serializedInstance: string, creatorType: Enum.AssetCreatorType, creatorId: number, assetType: string, assetId: number, name: string, description: string, token: string, contentType: string, expectedPrice: number? = 0): { [string]: any }
```

- Tags: Yields, Roblox script security

### CreateAssetOrAssetVersionAndPollAssetWithTelemetryAsyncWithAddParam

```luau
PublishService:CreateAssetOrAssetVersionAndPollAssetWithTelemetryAsyncWithAddParam(serializedInstance: string, publishInfo: { [string]: any }): { [string]: any }
```

- Tags: Yields, Roblox script security

### CreateAssetOrAssetVersionAndPollAssetWithTelemetryAsyncWithAddParamErrorJson

```luau
PublishService:CreateAssetOrAssetVersionAndPollAssetWithTelemetryAsyncWithAddParamErrorJson(serializedInstance: string, publishInfo: { [string]: any }): { [string]: any }
```

- Tags: Yields, Roblox script security

### PublishCageMeshAsync

```luau
PublishService:PublishCageMeshAsync(wrap: Instance, cageType: Enum.CageType): string
```

- Tags: Yields, Roblox script security

### PublishDescendantAssets

```luau
PublishService:PublishDescendantAssets(instance: Instance): boolean
```

- Tags: Roblox script security

### PublishDescendantAssetsAsync

```luau
PublishService:PublishDescendantAssetsAsync(instance: Instance): boolean
```

- Tags: Yields, Roblox script security

### TagEmoteAnimation

```luau
PublishService:TagEmoteAnimation(instance: Instance)
```

- Tags: Roblox script security

## Inherited members

- From [Instance](https://rapi.sleaze.dev/classes/Instance.md): `Archivable`, `archivable`, `Attributes`, `AttributesReplicate`, `AttributesSerialize`, `HistoryId`, `Name`, `Parent`, `PredictionMode`, `PropertyStatusStudio`, `RobloxLocked`, `SerializedOverrides`, `SourceAssetId`, `Tags`, `UniqueId`, `numExpectedDirectChildren`, `DataCost`, `Capabilities`, `DefinesCapabilities`, `IsInSandbox`, `Sandboxed`, `AddTag`, `ClearAllChildren`, `Clone`, `Destroy`, `FindFirstAncestor`, `FindFirstAncestorOfClass`, `FindFirstAncestorWhichIsA`, `FindFirstChild`, `FindFirstChildOfClass`, `FindFirstChildWhichIsA`, `FindFirstDescendant`, `GetActor`, `GetAttribute`, `GetAttributeChangedSignal`, `GetAttributes`, `GetChildren`, `GetDebugId`, `GetDescendants`, `GetFullName`, `GetStyled`, `GetStyledPropertyChangedSignal`, `GetTags`, `HasTag`, `IsAncestorOf`, `IsDescendantOf`, `IsPropertyModified`, `QueryDescendants`, `RemoveTag`, `ResetPropertyToDefault`, `SetAttribute`, `WaitForChild`, `Remove`, `children`, `clone`, `destroy`, `findFirstChild`, `getChildren`, `isDescendantOf`, `remove`, `AncestryChanged`, `AttributeChanged`, `ChildAdded`, `ChildRemoved`, `DescendantAdded`, `DescendantRemoving`, `Destroying`, `StyledPropertiesChanged`, `childAdded`
- From [Object](https://rapi.sleaze.dev/classes/Object.md): `ClassName`, `className`, `GetPropertyChangedSignal`, `IsA`, `isA`, `Changed`
