How do I give a custom R15 character the default animations?

I made a custom character GUI.
The character is a normal R15 character but still, it is not animated.
I have tried to copy the default animate script from my character to the new character.
I looked for solutions in the dev forum, but I did not find anything related that fixed my problem. How do I animate a custom R15 character with the default Roblox animations?
I don’t have a script to animate it. Help will be appreciated :slightly_smiling_face:
But please tell me what are the steps to do this. I want to understand so I can do the same in the future.

What I do to give R15 NPCs animations, was to copy the animate script from an R15 player, then convert the local script to a script, and then remove the section with /e dance and other chat commands.

2 Likes

Go to Game Settings in Roblox Studio then set the animation type to Standard (This can be found in the Avatar tab). Once you’ve done that go into play mode then copy the Animate LocalScript. Convert everything from the LocalScript into a Script and remove the following lines of code.

-- setup emote chat hook
game:GetService("Players").LocalPlayer.Chatted:connect(function(msg)
	local emote = ""
	if (string.sub(msg, 1, 3) == "/e ") then
		emote = string.sub(msg, 4)
	elseif (string.sub(msg, 1, 7) == "/emote ") then
		emote = string.sub(msg, 8)
	end
	
	if (pose == "Standing" and emoteNames[emote] ~= nil) then
		playAnimation(emote, EMOTE_TRANSITION_TIME, Humanoid)
	end
end)
3 Likes

Thank you guys for answering! Your answers are basically the same and it works. Thank you so much :grinning: