I was adding an animation to my game, when I add the animation it doesn’t work, that’s why I decided to try it on a baseplate and it did work. This is the script:
local anim2 = script.Animation
wait(5)
local player = game.Players.LocalPlayer
local char = player.Character
local hum = char.Humanoid
local BirdAnimationTrack = hum:LoadAnimation(anim2)
while true do
wait(1.35)
BirdAnimationTrack:Play()
end
Check if this works, I did typed this quickly so I don’t know whether it’ll work or not
-- Services
local PlayerService = game:GetService('Players')
-- Variables
local Player = PlayerService.LocalPlayer
local Character = Player.CharacterAdded:Wait()
local Humanoid = Character:WaitForChild('Humanoid')
local BirdAnimation = script.Animation
local BirdAnimationTrack = Humanoid:LoadAnimation(BirdAnimation)
-- Play
BirdAnimationTrack.Looped = true
BirdAnimationTrack:Play()
If this is meant to be a walking animation then you could fork out the animation scripts from your character and replace the walking animation id with the animation you want
No worries. Each animation has a priority, which allows it to over write animations of a lower priority. The animations already in your game might have a higher priority than the one you’re trying to add.