Animation won't play

I have made an animation with the set animation priority set to Core and it is looped, when ever I tried to play the animation, it won’t play.

local animation = Instance.new("Animation", test.Main)
animation.AnimationId = "rbxassetid://6284599080"
local loaded = test.Main.AnimationController:LoadAnimation(animation)
loaded:Play()

The thing that I want to animate.
Screenshot_1

1 Like

I hope this helps you out, also core isn’t the best for animation, I recommend using Action or Movement.

Read

1 Like

I tried using the Instance.new("Animator") it’s still the same the animation won’t play.

local animator = Instance.new("Animator", test.Main)
local animation = Instance.new("Animation", animator)
animation.AnimationId = "rbxassetid://6284739674"
local loaded = animator:LoadAnimation(animation)
loaded:Play()

Then I tried using humanoid it finally worked.

local animation = Instance.new("Animation", test.Main)
animation.AnimationId = "rbxassetid://6284739674"
local loaded = test.Humanoid:LoadAnimation(animation)
loaded:Play()

Try using test.Main:FindFirstChildOfClass("Animator") as one already may exist

Edit: You used humanoid which works but won’t replicate to other clients

I tried using test local server and it did replicate it to the other clients.