Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Custom Animations for StarterCharacter?

Asked by 2 years ago

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

Log in to vote
0
Answered by 2 years ago
Edited 2 years ago

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)
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? qMrSpooky 20 — 2y
Ad

Answer this question