Script: local walkAnimationId = "rbxassetid://YourWalkAnimationIdHere." local idleAnimationId = "rbxassetid://YourIdleAnimationIdHere." local jumpAnimationId = "rbxassetid://YourJumpAnimationIdHere." local players = game:GetService("Players") local function onCharacterAdded(character) local humanoid = character:WaitForChild("Humanoid")
local animateScript = character:WaitForChild("Animate")
animateScript.walk.WalkAnim.AnimationId = walkAnimationId animateScript.idle.Animation1.AnimationId = idleAnimationId animateScript.jump.JumpAnim.AnimationId = jumpAnimationId end local function onPlayerAdded(player) player.CharacterAppearanceLoaded:Connect(onCharacterAdded) end players.PlayerAdded:Connect(onPlayerAdded)
Do we/I have to remove the "walkAnimationId" "idleAnimationId" And the "jumpAnimationId"? Also, can you do some tutorials on "X to Slide" "Q to dash" and also "C to crouch"? Thanks! Also, I subbed👍👍 It's fine if you don't want to!
Guys remember when he said that you have to put the id in your character that says animation with it you have to change that old id to the new one! 8:51
I know this might be late but I have a question, for some reason the idle animation I made doesn't want to play whenever I publish it, I did the script correctly and everything. It plays in roblox studio but not when I play the game, is there anyway to fix that?
What would I do if I wanted to add a punching animation on m1 or maybe an m1 combo? Oh but it’s not a tool you just spawn in with your hands in a stance
for some reason when i wrote the script myself it didnt work, however after i stole the script from the comments, it works (i have never animated in my life)
When I try to add an Animation Track, nothing happens. I click "Add All Body" and nothing happened. How do I fix this? The problem happens for R6 rigs only. R15 animations work perfectly...
Wait can you give me the script or another tutorial bc I wanna add a running animation but idk how to make it get added to the script you have I’m not really good with scripting so if you could help me that would be great thanks again
I copied everything correctly but in the end the jump animation didn't work. I reuploaded my jump animation and pasted it into the same area, but to no avail. What do I do to fix this?
how about on a custom character, it works fine but when i add a custom character which is what the player will look like, the animations dont work, any fixes?
can you make a tutorial for animations when doing things, example: im making an fps game and i need to make a custom animation for holding the gun but idk how
hi rusty. Idk how to add an key frame or how it called cuz i was animating a weird strict dad anim but then i can only do a part of the walking (if u dont know what is it sry idk how it named) and not the entire walking😅
yo rusty when i play test my game all the animations work but the thing is, when my friend play tests the game he doesn't get the animations is there anyway i can fix it and when i check the output it says "Humanoid is not a valid member of LocalScript"
If you are working in a group, you will need to publish the animations with the group as the creator, otherwise, you will need to make sure that the owner of the game publishes the animations.
Script:
local walkAnimationId = "rbxassetid://YourWalkAnimationIdHere."
local idleAnimationId = "rbxassetid://YourIdleAnimationIdHere."
local jumpAnimationId = "rbxassetid://YourJumpAnimationIdHere."
local players = game:GetService("Players")
local function onCharacterAdded(character)
local humanoid = character:WaitForChild("Humanoid")
local animateScript = character:WaitForChild("Animate")
animateScript.walk.WalkAnim.AnimationId = walkAnimationId
animateScript.idle.Animation1.AnimationId = idleAnimationId
animateScript.jump.JumpAnim.AnimationId = jumpAnimationId
end
local function onPlayerAdded(player)
player.CharacterAppearanceLoaded:Connect(onCharacterAdded)
end
players.PlayerAdded:Connect(onPlayerAdded)
Do we/I have to remove the "walkAnimationId" "idleAnimationId" And the "jumpAnimationId"?
Also, can you do some tutorials on "X to Slide" "Q to dash" and also "C to crouch"? Thanks! Also, I subbed👍👍
It's fine if you don't want to!
@@AnderWinn you can change and remove them, they are just names for your variables
I followed the video step by step and it didn’t work now I’m upset
Thx
@@EliteNindoIsMyName it works very good, check your script is correctly changed
Thank you soo much for learning me how to make r6 animations! I only knew r15 but this is very useful! Thanks a lot!
Yoooo rusty I’ve been looking for this for SO long
WELP I'M STILL LOOKING FOR A DECENT ONE BUT THIS ONE DOESN'T F###ING WORK, THIS SUCKS
@@nixdesenhos7144true it doesn’t work
@@nixdesenhos7144 it works for literally everyone else. You, my friend, simply have a skill issue
skill issue@@nixdesenhos7144
@@nixdesenhos7144 maybe because you dont know how to animate
THW ONE VIDEO THAT ACTUALLY WORKED, thank you im subbing :D
Thanks for subbing!
Bro thanks so much i was spending so much time looking fr the right vid tysm man!
No problem 👍
@rustysillyband it won't work when I play my game but it works when testing when I play it on roblox it's just standing still even when I walk
So i've been developing a Battleground game and this guy is just what i needed to make the run animation and the m1s to work, your a goat.
whats the name
Ya what da name
Omggggggggggggg it works!! thank you for making this vid!
You're welcome!
@@rustysillybandit’s not working for most of us. Please make a updated ver
@@Diamond-yt It is working just make sure you follow the steps exactly as they are
@@MusicArtistFr I ended up doing it on my own lol
@@Diamond-yt Oh haha
You are the BEST! It didn't even took 10 hours like the other youtubers. Thanks a lot man you just earned a sub!
Thanks for the sub!
It worked TYSM! that's a well deserved sub.
can we appreciate his work like he even put the script in the comments.
He did💀💀💀💀 I wasted so much didnt I
@@Thestrongestbattlefr same
No it did not work for me
OMG TYSM I NEED TO KNOW THAT SO MUCH YOU ARE MAKING BEST TUTORIAL VIDEOS
this worked thank you so much
bro you help a lot thanks you help you showed me i dident need mirror moon for this thanks and bye
when i do it for some reason it doesnt work. do you have a solution? i did everything right??
u earned a new sub this was really helpfull many other videos didnt work but this one did thank you👍👍
Thanks for the sub!
For those who it didn’t work you might have to change your body type to r6 if you are using that (I don’t know if it works but it worked for me)
ayoooooo
thankyou so much bro!!!!!!!, after finding a good tutorial i finally found you!!!!!!! my saviour!!!! i subscribed! thankyou so much!!
This script really helped thanks man!
yoo this help i was so confused about the other vids i watched because they were from a long time ago
ty
NOTHING WORKS
this script really does help, one of the best ones I've seen WORK to this day!
Bro this is such a helpful video thank you for this
i have a problm, one i start walking it plays but when i stand still and then start walking again it doesnt play; does someone have the solution?
Thank you SO much, this really helped!
w this works so well! great for starters
Thanks It Worked Really Good
Thank you so much
THIS IS THE TRUE GOAT
The exact simple tutorial i need for my simplistic noodle brain.
Thanks bro ur the goat.
fr
U just earned a sub :D
Thank You so much this helped me so much and keep up the work its like the best tutorial ever thank you
Thanks For The Script🛠
been looking for a tutorial on this, went through three that didn't work and this did! Thanks!
SAME MAN
this really works, i even used this. IM SUBBING AND LIKING
ty bro, appreciated it.
Thanks for the help bro
Guys remember when he said that you have to put the id in your character that says animation with it you have to change that old id to the new one! 8:51
THANK YOU, MAN, YOU ARE THE BEST!!!
THANKS BRO THANKSSSS
thank you so much bro this helped me make my game!1
Thank you so much!!
Thank you, you helped me a lot.
Glad I could help. Thank you so much for watching!
THX :)
thank you bro, please make more.
when you stop running and run again the animation breaks ( i lied just had to input the other animations)
Very helpful!
Omg Thank you so much
Finally a working tutorial
Thank you so much! Is there a way to change fall animation?
Yup there probably is.
This man is divine
TYSM i am new to scripting Lua and this is helping me learn, here is a sub
also another note: thank you for not just spoon feeding it to us and actually explaining what things do!
thanks bro!!!
Any time
thanks!
Yeeeee
In the Tycoon Series can you make it so the tycoon resets when a player leaves the game? Also keep up the good work!
Yep! We're going to be going over that soon!
Thank you
thank u so much new sub
OMG WAIT IT WORKS LETSGO!!!!
This video is really helpfull thanks
Glad to hear that!
THANK YOU SO MUCH BRO!!! IVE BEEN TRYING TO GET A CUSTOM FOR OVER4 MONTHS
does the walk/run animation have to be on seperate block rigs? or do i have to make a seperate block rig for every animation?
i think not, one rig can hold multiple animations
is there a way to add effects or parts to rigs? i cant afford moon animator and if you answer this that will help alot!
I have moon animator and I can't even do what the video is about
TYSM!!!!!!!
THANK YOUUUUUUU
thanks you a lot
The only animation that worked was the walk animation. No idle or jump. Can i get some help?
i love you bro
I know this might be late but I have a question, for some reason the idle animation I made doesn't want to play whenever I publish it, I did the script correctly and everything. It plays in roblox studio but not when I play the game, is there anyway to fix that?
What would I do if I wanted to add a punching animation on m1 or maybe an m1 combo? Oh but it’s not a tool you just spawn in with your hands in a stance
use userInputService to check if the user presses the left mouse button and is holding nothing then do what you want it too.
Does this also work for R15 animations?
THX
what did you use to make the idle?? i can’t do it
too
is it supposed to only play the animation once?
what would the animation priority be for the other animations in your animate localscript?
For swimming, it would be movement, for falling, it would be core, and I think pretty much all of the other ones are core too.
is there a way to make the jump anim stay on the ground for a certain amount of time and THEN jump, so the falling anim doesnt interupt it?
this tut was very helpful!! however i have no idea how to create a jump animation and add it to the script, if you see this pls help thank you
I wanted your original r6 walk at the beggining of the video do you still have the code for it?
You SWAGG
Okay so at first it didn't work in the original game i implemented in but then i created a new game and pasted the script back in so now its good ty
Dude once I finish my game, which is called The Offbeat Adventure, plz make a vid on it if you can, you do not have to but it will be great
for some reason when i wrote the script myself it didnt work, however after i stole the script from the comments, it works
(i have never animated in my life)
yooo this worked!
When I try to add an Animation Track, nothing happens. I click "Add All Body" and nothing happened. How do I fix this? The problem happens for R6 rigs only. R15 animations work perfectly...
tried to use this with a custom startercharacter, but whenever i tested it it just played the default anims
Same
Same, this is my 4th attempt and not a single video worked. Perfect!
same here.
Same here
I might know a fix
try adding this to the script:
local default = script.Parent:WaitForChild("Animate")
default:Destroy()
Hello Rusty Can you make a Roblox tutorial about how to make an npc teleport to the player every 5 seconds for example
Works there run animation?
Wait can you give me the script or another tutorial bc I wanna add a running animation but idk how to make it get added to the script you have I’m not really good with scripting so if you could help me that would be great thanks again
for anyone who says it doesnt work make sure to change your game settings to r6
It still doesn't work 💀
I copied and pasted the exact code, and put in the animation ids by paste. It might be a Roblox problem.
How might I give custom animations to only a morph and not whenever you just load into the game without a morph?
i need help with idle code can you help (and btw what does "Animation1" mean?)
how do you make this work for every r6 player? cus it only works for me and not my friends
For the run, after 5 seconds it stops and makes me freeze while walking is there a way to fix it?
I copied everything correctly but in the end the jump animation didn't work. I reuploaded my jump animation and pasted it into the same area, but to no avail. What do I do to fix this?
Hiya! So instead of making a jump animation, I want to make a run animation. How do I do that?
just a quick quetion on why dont it work does it have to be onsale???
how about on a custom character, it works fine but when i add a custom character which is what the player will look like, the animations dont work, any fixes?
can you make a tutorial for animations when doing things, example: im making an fps game and i need to make a custom animation for holding the gun but idk how
hi rusty. Idk how to add an key frame or how it called cuz i was animating a weird strict dad anim but then i can only do a part of the walking (if u dont know what is it sry idk how it named) and not the entire walking😅
yo rusty when i play test my game all the animations work but the thing is, when my friend play tests the game he doesn't get the animations is there anyway i can fix it and when i check the output it says "Humanoid is not a valid member of LocalScript"
If you are working in a group, you will need to publish the animations with the group as the creator, otherwise, you will need to make sure that the owner of the game publishes the animations.
@rustysillyband it works but why does it sometimes work and sometimes doesn't?
Does it work with a animation from the toolbox or you need to make one?
Yeah, its the same system