How to import animation for my custom avatar
this is the code, i got it from youtube
local Players = game:GetService("Players")
local runAnimation = "rbxassetid://13808528218" -- replace these with your own animation ids
local idleAnimation = "rbxassetid://13808431387" -- replace these with your own animation ids
local function onCharacterAdded(character)
local humanoid = character:WaitForChild("Humanoid")
local animateScript = character:WaitForChild("Animate")
animateScript.run.RunAnim.AnimationId = runAnimation
animateScript.idle.Animation1.AnimationId = idleAnimation
end
local function onPlayerAdded(player)
player.CharacterAppearanceLoaded:Connect(onCharacterAdded)
end
Players.PlayerAdded:Connect(onPlayerAdded)
and this is the model