Animation

Animation : Instance

Overview

Animation is a subclass of Instance managing animation data with properties for the animation.

Description

In OVERDARE Studio, Animation plays a crucial role in managing and referencing animations. It's associated with an AnimationId, which represents the content ID of a specific animation uploaded to Creator Hub. This identifier can be extracted from the URL of the uploaded animation file.

Properties

AnimationId

string

AnimationId is a String property representing the content ID of an animation

Code Samples

local Players = game:GetService("Players")

local Character = Players.LocalPlayer.Character
local Humanoid = Character:WaitForChild("Humanoid")

local Animation = Instance.new("Animation")
Animation.AnimationId = "BasicHandgunIdleAnimation"

local Animator = Humanoid:FindFirstChild("Animator")
local AnimationTrack = Animator:LoadAnimation(Animation)

AnimationTrack:Play()

Methods

Events