How to implement running animation

  1. What do you want to achieve?
    I want to add running thing

  2. What is the issue?
    In game i see only walk animation how do i add runnning?

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

Yes i did but nowhere seems to find a answer to my question

1 Like

Are you referring to the walk and run animations inside a player?

If so, the walk animation is commonly used for players who are moving slowly, usually at a walking speed of 8 or less:


(The first animation is the RunAnim while the second is the WalkAnim when I’m walking slower)

If this is what you’re referring to, it’s already implemented if you put in the correct IDs, you just aren’t seeing it because your WalkSpeed is probably set to the default of 16, which is causing you only to see one of the two.

If this is not what you’re referring to please correct me and elaborate on your issue!

2 Likes

yes inside the player i do not want the vid i want something like in loomian legacy play it and as u can see theres run and walk inside player

Do you mean holding shift to sprint?

yes kinda like it like in computer shift and in phone it will be button like loomian legacy

On PC you can use UserInputService to detect when the player presses or releases left shift, on mobile you can create a button (either TextButton or ImageButton depending on your preferences) then use TouchLongPress to detect when a mobile user clicks the button or releases it.

1 Like

bro not like that dude there is a button if player touches it become running in which player purchased and if touch back then walk anim bought play loomian legacy in mobile u will understand

You can create a button to which players can click it to change their walkspeed and animation. You can detect if the player has gamepass which then allows them to see the button.

i dont want the walkspeed dude pls read above and say

Let me rephrase it:

  • create a button which checks if the player clicked it
  • if the player has the gamepass then change their animation from walking to running
  • if clicked again, changes the running anim back to walking anim

You can implement a debounce to prevent the player from spamming the button.

1 Like

how do i know player in animations

1 Like