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

Custom Animations for StarterCharacter?

Hello! I have some animations that I made (Walking, idle, etc) for a startercharacter, but I want to make only a specific startercharacter to have those animations, and other startercharacters have different animations than one another (I do the animations myself)

The Thing is, can I make a script/localscript that gives me different walking/idle/etc animations depending of the startercharacter that I have? Also, Can I make a localscript that, when pressing E (using a specific startercharacter) to play an animation? I really need it cause I dont want to use tools

-- I have tried putting a custom animations script in the startercharacter, INCLUDING the default one with different animations, tho it did not work.

Any help will be appreciated! :)

1 answer

✓ Accepted answer

Playtest and copy the local script named "Animate" from your character. Stop the test and paste the local script to StarterCharacterScripts. Change the AnimationId of (Animate -> Value -> Animation Object ) to your own custom animations.

So, let's say we want to change the run/walk animation through a script. Here's how I would do it:

game.Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(character)
				
		--Animate -> Value -> Animation Object
		
		character.Animate.run.RunAnim = "rbxassetid://123456789"
		character.Animate.walk.WalkAnim= "rbxassetid://123456789"
	end)
end)

1 comment

0

There's just one problem. I know how to make a startercharacterscripts localscript that plays my animations, but how can I make it so a different starterCharacter has a different animation?

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