Animation won't play

  1. What do you want to achieve? I’m trying to load and play animation on a mesh and bone based character.

  2. What is the issue? The animation won’t play.

  3. What solutions have you tried so far? I have tried changing the humanoid’s parents, but it didn’t seem to work.

This is the code for the animation:

local hum = script.Parent
local anim = script:WaitForChild("Animation")
local model = hum:LoadAnimation(anim)
model:Play()
model.Looped = true

Location of humanoid:
obrazek

Can you tell me more about the model itself. There might be an issue with roblox not knowing what animation piece to use on what part of the model.

You need an Animator for the humanoid.

local Humanoid = script.Parent
local Animator = Instance.new("Animator", Humanoid)
local Animation = script:WaitForChild("Animation")
local Model = Animator:LoadAnimation(Animation)

Model:Play()

Your animation script would have to look something like this
Heres a link for Animators if you still need help understanding it. Animator | Roblox Creator Documentation

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.