How to get RigType from imported HumanoidDescription?

A question, can I get the player’s R15 animations from either an API or from a function?

Players:GetHumanoidDescriptionFromUserId should return it in its properties:

local description = Players:GetHumanoidDescriptionFromUserId(1)
print(description.IdleAnimation) -- Should print the idle animation id

Otherwise, I’m not aware of any other way.

Alright thank you… I’ll try to do this.

for _,thingy in pairs(clonedR15:GetDescendants()) do
			if thingy:IsA("Animation") then
				if thingy.Name == "ClimbAnim" then
					thingy.AnimationId = desc.ClimbAnimation
				elseif thingy.Name == "FallAnim" then
					thingy.AnimationId = desc.FallAnimation
				elseif thingy.Name == "Animation1" then
					thingy.AnimationId = desc.IdleAnimation
				elseif thingy.Name == "Animation2" then
					thingy.AnimationId = desc.IdleAnimation
				elseif thingy.Name == "JumpAnim" then
					thingy.AnimationId = desc.JumpAnimation
				elseif thingy.Name == "RunAnim" then
					thingy.AnimationId = desc.RunAnimation
				elseif thingy.Name == "WalkAnim" then
					thingy.AnimationId = desc.WalkAnimation
				end
			end
		end
	end

Alright, is this code good?
Edit: It does not work.

I got an issue, the character isn’t displaying the animations, but whenever I copy the character’s description, I get the animations after I move… Is there a solution for this?
Video:

For the character to display the animations when you load them, you would need to use Animator:LoadAnimation, and the reason why your character animation only displays after you move is because the animate script only updates the player’s animations when they move (to fix this, you would use the same method for the NPC).

I tried to do this with Humanoid:MoveTo() but it didn’t work at all? It moved but the animations didn’t work…

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.