Creating Animations

Animations in Roblox allow you to animate characters, objects, and other elements. Here's how you can create a basic animation.

Basic Animation Example

local animation = Instance.new("Animation")
animation.AnimationId = "rbxassetid://123456789"
local humanoid = game.Workspace.Character.Humanoid
humanoid:LoadAnimation(animation):Play()

Key Concepts