Load Animation Problem (Custom Character - Blender)

Hello,

I am coding a game about the future and I created a character in blender (and no from Roblox), so when I am creating an animation it looks:
image

My game is published with my group and my animations as well.


But I am getting some problem : the animations are not loading, the character is in the basic position (when I created it) :

The script when I am deploying with my custom character :

local rs = game:GetService("ReplicatedStorage")
local event = rs.Events.Deploy.DeployEvent

event.OnServerEvent:Connect(function(plr)
	local GunChoosed = plr.GunChoosed
	
	local newCharacter = game:GetService("ReplicatedFirst").Morphs.Character:Clone()
	local newAnimate = game:GetService("ReplicatedFirst").Morphs.ManagerAnimations:Clone()
	
	newAnimate.Name = "Animate"

	local char = plr.Character
	newCharacter.Name = plr.Name
	newCharacter:PivotTo(char.HumanoidRootPart.CFrame) 
	char:Destroy()
	plr.Character = newCharacter
	newCharacter.Parent = workspace
	newAnimate.Parent = newCharacter
	wait(0.5)
	local humanoid = newCharacter.Humanoid
	
	event:FireClient(plr, humanoid)
end) 

The script which manage animations :

local plr = game:GetService("Players").LocalPlayer
local character = script.Parent
local humanoid = character:FindFirstChild("Humanoid")

local function loadanimation(anim)
	return humanoid.Animator:LoadAnimation(anim)
end

if (humanoid) then
	local walkAnim = script:WaitForChild("March")
	local walkAnimTrack = loadanimation(walkAnim)

	local pauseAnim = script:WaitForChild("Pause")
	local pauseAnimTrack = loadanimation(pauseAnim)

	humanoid.Running:Connect(function(speed)
		if speed > 0 and speed < 17 then
			-- Stop

			if pauseAnimTrack.IsPlaying then
				pauseAnimTrack:Stop()
			end

			-- Playing

			if not walkAnimTrack.IsPlaying then
				walkAnimTrack:Play()
			end
		else
			if walkAnimTrack.IsPlaying then
				walkAnimTrack:Stop()
			end

			if not pauseAnimTrack.IsPlaying then
				--pauseAnimTrack:Play()
			end
		end
	end)
end

The content of the character :

image

By the way I tried to test it in the normal roblox and no in the studio, it did not work.
Finally, I have no error.

First of all, why do you have an AnimationController inside of your character model?
Second, what is speed?
It also doesn’t look like you’re loading the animation to the Humanoid.

2 Likes

I am using the Animator and no the humanoid (look at the fonction in the script which manage these animations).

What do you mean by speed? Btw the length of the animation is higher than 1.3 for example.

And I have an animation controller because when I imported my character with “Avatar Importer” I selected custom and I got it like this.

Wait you were right !

The AnimationController was the problem. Thank you for tell me this because no one saw it. :>

‘Speed’ is a parameter of the Humanoid.Running event/signal, it represents the speed of the humanoid when it fires.

https://developer.roblox.com/en-us/api-reference/event/Humanoid/Running

Did you import the animation through the blender to roblox plugin?