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! :)
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)