Issues with HumanoidDescription

To keep it brief, I’m having some issues with changing the animations using the HumanoidDescription object. (Also, please let me know if this is the best way to actually change default animations mid-game)

The errors I’m getting are:

  16:24:57.220  Asset id 5671454392 should reference a Folder Instance named R15Anim  -  Studio
  16:24:57.221  Humanoid::ApplyDescription() Some requested assets were not available  -  Studio

Code:

--LocalScript
local UserInputService = game:GetService("UserInputService")
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")

local Player = Players.LocalPlayer
local Remote = ReplicatedStorage.Remote

UserInputService.InputBegan:Connect(function(Input, GPE)
	if GPE then
		return
	end
	
	if Input.UserInputType == Enum.UserInputType.MouseButton1 then
		Remote:FireServer(Player)
	end
end)
--ServerScript
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Remote = ReplicatedStorage.Remote

Remote.OnServerEvent:Connect(function(Player)
	local Humanoid = Player.Character.Humanoid
	local HumanoidDescription = Humanoid:GetAppliedDescription()
	
	HumanoidDescription.WalkAnimation = 5671454392
	Humanoid:ApplyDescription(HumanoidDescription)
	
	print("New Walking Animation Applied")
end)
1 Like

Try and take a look at this. HumanoidDescription | Documentation - Roblox Creator Hub
If you still didn’t figure out, tell me.

1 Like

I forgot to mention, but yea, I’ve already taken a look at the API reference, that’s whats confusing me in the first place.

Remove player inside there, because you are getting it as defeault.
Remote:FireServer()

Now I will look into a fix. Wait.

Try this:
Player.Character:WaitForChild(“Humanoid”)
local Humanoid = Player.Character:FindFirstChild(“Humanoid”)
Humanoid:WaitForChild(“HumanoidDescription”)

		if Player.Character.Parent == nil then
			repeat wait() until Player.Character.Parent ~= nil
		end
		
		local HumanoidDescription = Humanoid:GetAppliedDescription()
		
		HumanoidDescription.WalkAnimation = 5671454392
		wait()
		Humanoid:ApplyDescription(HumanoidDescription)

		print("New Walking Animation Applied")

Oh thanks for pointing out the player argument being passed on.
Still seems like I’m having the same problem, not sure whats going on.

Send the error. Are you sure the ID is for R15 or R6.

Yea It’s in R15

Error:

12:05:43.828  Asset id 5671454392 should reference a Folder Instance named R15Anim  -  Studio
12:05:43.828  Humanoid::ApplyDescription() Some requested assets were not available  -  Studio

Uh… Placed two dots when there should be one.

Thats the error in output, if you take a look at the code I provided above, you wouldn’t find it there.

Nope, roblox bugging. Also if u added my script. That error should be gone. I tried it on my own.

The other sentence is meant to be reacting to PRemedius.

I copied the code 1:1 and I still had the same error. Were you able to change the animations by any chance? If so, can you post the code again just in case something was changed in your script?

No, I could not. It ais there was an asset error. Maybe take a look at the ID? And make sure the animation is under your account.

It is, I’ve checked multiple times and have even tried different ID’s. Nothing works.

Hmmm… Then I don’t know a solution sorry.

No worries, thanks for the help.

You can still change those Screenshot by Lightshot

1 Like

It wouldn’t work, from what I remember the AnimationId inside the Animate script also needs to be changed, correct me if I’m wrong.

from looking at your code, everything seems to be ok, I think your issue is the fact that your animation id is a custom one instead of an animation from one of ROBLOX’s animation packs, try using an animation from on of the buyable animation packs in the catalog, if that doesn’t work, I suggest just changing the local animate script’s animation tracks manually