AnimationClip

Show Deprecated
Not Creatable

The non-creatable AnimationClip instance type represents abstract animation data that can be fed to the Roblox animation system. KeyframeSequence and CurveAnimation are two current instance types that inherit from AnimationClip.

There are different ways to represent animation data. To simplify the use of Roblox's animation system, all such representations are their own instance types but inherit from the AnimationClip instance. Animation clips published to Roblox via the Animation Editor can be loaded into the Roblox Engine using an Animation instance.

Summary

Properties

Properties

Read Parallel
Read Parallel

Code Samples

KeyframeSequence Instantiation

-- create the keyframesequence
local keyframeSequence = Instance.new("KeyframeSequence")
keyframeSequence.Loop = false
keyframeSequence.Priority = Enum.AnimationPriority.Action
-- create a keyframe
local keyframe = Instance.new("Keyframe")
keyframe.Time = 0
-- create sample poses
local rootPose = Instance.new("Pose")
rootPose.Name = "HumanoidRootPart"
rootPose.Weight = 0
local lowerTorsoPose = Instance.new("Pose")
lowerTorsoPose.Name = "LowerTorso"
lowerTorsoPose.Weight = 1
-- set the sequence hierarchy
rootPose:AddSubPose(lowerTorsoPose) -- lowerTorsoPose.Parent = rootPose
keyframe:AddPose(rootPose) -- rootPose.Parent = keyframe
keyframeSequence:AddKeyframe(keyframe) -- keyframe.Parent = keyframeSequence
-- parent the sequence
keyframeSequence.Parent = workspace

Methods

Events