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)
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")
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
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?
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