PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

RegisterKeyframeSequence

Generates a temporary asset ID from a KeyframeSequence that can be used for localized testing of an animation.

This function performs the same function to KeyframeSequenceProvider/RegisterActiveKeyframeSequence however this function generates a hash instead of an active:// URL.

The ID generated can be used for the Animation/AnimationId property to test animations.

The asset ID generated by this function is temporary and cannot be used outside of Studio. Developers wishing to generate an asset ID that can be used online should upload the KeyframeSequence to Roblox.

Parameters

Name Type Default Description

The KeyframeSequence to be used.

Returns

Return Type Summary

A temporary asset ID generated for localized animation playback.


Code Samples


KeyframeSequenceProvider:RegisterKeyframeSequence

local asset = game:GetService("KeyframeSequenceProvider"):RegisterKeyframeSequence(workspace.KeyframeSequence)
local animation = Instance.new("Animation",workspace)
animation.Name = "TestAnimation"
animation.AnimationId = asset