Okay, so I have a StarterCharacter that has only a part. I put a local script under StarterCharacterScripts named Animate and here’s the content:
local character = script.Parent
local humanoid = character:WaitForChild("Humanoid")
local animator = humanoid:WaitForChild("Animator")
local run = character.Run
local runTrack = animator:LoadAnimation(run)
humanoid.Running:Connect(function(speed)
if speed > 0 then
print("Player is running")
runTrack:Play()
else
print("Player has stopped")
runTrack:Stop()
end
end)
Now, what I did is, I animated only the Torso of an R6 rig (I did not touch the rest of the body parts.).
But when I test it, the animation doesn’t play. There are no errors in the output. So, what is the best way of animating a character that has only one part? Thanks for reading and g’day mate!