Animation
Animation : Instance
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
Last updated