Hello. I have a script that should change the running animation to the ninja bundle running animation, but for some reason I get the error that is stated in the title.
local function onPlayerAdded(player)
-- Create a HumanoidDescription
local char = player.Character or player.CharacterAdded:Wait()
local humanoid = char:FindFirstChild("Humanoid")
local humanoidDescription = humanoid:GetAppliedDescription()
humanoidDescription.RunAnimation = "658830056"
-- Spawn character with the HumanoidDescription
if humanoid then
humanoid:ApplyDescription(humanoidDescription)
end
end
-- Connect "PlayerAdded" event to "onPlayerAdded()" function
game.Players.PlayerAdded:Connect(onPlayerAdded)
Perhaps you could add a short wait before applying the description. I believe this error occurs whenever the desired humanoid is not a descendant of the workspace.