Custom character mesh from blender wont play animations in Roblox studio!

Hey, I rigged a free model I found online and imported it into Roblox.

image

But whenever I try to play an animation on it in-game, it doesn’t work. I used both Moon Animator and Blender to animate the rig, but no matter what I did, the animation wouldn’t play during gameplay.

I even tried both rig types “R15” and “R6”, but it still wouldn’t play.

Here is the ‘Animate’ script I have in the StarterCharacterScripts:

local plr = game.Players.LocalPlayer
local char = plr.Character
local humn = char:WaitForChild("Humanoid")
local humr = char:WaitForChild("HumanoidRootPart")
local AnimationController = char:WaitForChild("AnimationController")

local rs = game:GetService("ReplicatedStorage")
local uis = game:GetService("UserInputService")
local cc = game:GetService("CollectionService")
local runservice = game:GetService("RunService")

local anims = {}


for i1, v in pairs(script:GetChildren()) do
	if v:IsA("Animation") then
		local newAnim = AnimationController.Animator:LoadAnimation(v)
		newAnim.Looped = true
		newAnim.Priority = Enum.AnimationPriority.Action4

		anims[v.Name] = newAnim
	end
end

humn.Running:Connect(function(speed)
	if speed > 0 then
		if not anims["Walk"].IsPlaying then
			anims["Walk"]:Play()
		end
	else
		if anims["Walk"].IsPlaying then
			anims["Walk"]:Stop()
		end
	end
end)

humn.Climbing:Connect(function(speed)
	--perform climbing anim here
end)

humn.Jumping:Connect(function(bool)
	--perform jumping anim here
end)

It works while animating as shown on the image bellow, but as soon as I try to run it through a script, it doesn’t show up. There are no errors, which means the animation is playing, but it just doesn’t appear on the rig.

HELP!

I’ve fixed this before, I remember it was super temperamental though and I don’t remember exactly what I did to fix it so I’ll just post my first thoughts. My first thought is since you have a humanoid, you should put the animator inside that and remove the animation controller. And secondly make sure that the model has the hrp as the primary part. I hope one of those was it, I can check later to see what I actually did, but I don’t have access to those files at the moment.

So, I added an Animator to the Humanoid and deleted the AnimationController, which fixed the issue.

I had tried that before, but I didn’t delete the AnimationController, which turned out to be the final step I needed to take!

I really appreciate your help!

1 Like