Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I animate r15 morphs?

Hi, I'd like it if once a player steps on the morph pad/equips a morph their animations change e.g. walking animation, idle etc. (Or players on two different teams have different walking animations) How would I do this? Any help would be greatly appreciated! :)

1 answer

In your character, you have a script named "Animate", and in this script you have every animation which contains AnimationId. So you can change your animations with this script. If you want the "Run" animation to work, you must export the animation even if it's a Roblox animation.

So you could do:

local player = game.Players.LocalPlayer

local function characterAdded(character)
	if player.Team.Name == "Red" then
		character.Animate.run.RunAnim.AnimationId = "your animation id here"
	elseif player.Team.Name == "Blue" then
		character.Animate.run.RunAnim.AnimationId = "your other animation id here"
	end
end

player.CharacterAdded:Connect(characterAdded)

If you need more informations, check this: https://developer.roblox.com/en-us/articles/using-animations-in-games

This discussion is preserved as it was. New answers, comments, and votes are closed.