When I animate weapons, I just put the Tool inside of the Rig I'm going to animate it in and it automatically goes into the Rig's hand (it also serves as a preview for how the Tool looks in-game so you can edit the grip if it's set up incorrectly).
if your animation is continuously playing even after you drop or unequip your tool, you set the animation to play on loop. you must disable the loop and reupload your animation. i just spent 4 hours figuring this out
ngl after hours of finding a solution I came across this video and it looked hella promising after watching literally everything else.... so naturally I followed the tutorial perfectly, ive checked my script plenty of times and everything should work. yet my sword never swings, it could be cuz I made it in blender but nothing works.
local tool = script.Parent local animation = Instance.new("Animation") animation.AnimationId = "rbxassetid://YOUR ID HERE" local debounce = false tool.Activated:Connect(function() if debounce == false then debounce = true
My search bar: "How to an animation with a tool on roblox studio" Me: "This video seems perfect for my gun I guess" Him: "Guns are kinda complex" Me: "💀"
@@normalestofthemall Yea I kept on trying but I had a "Handle" so then I searched up how to do a custom hold (copy paste) it turned out to be easy then I just placed a motor6d and the gun is finished
bro i feel so silly because i was wondering why it wasnt working for like hours and it was because i was making r6 animations and the game was r15 lol, jokes aside great tutorial
I have a question, I did the same thing as you did, but with my own knife model, I don't what is wrong but all I know is I used weld constraint to weld all the parts together before welding the handle to the arm, and I already grouped the parts into a tool, but anyways, I can't add any keyframes to the animation, plz help
You add keyframes by going into the animation editor, making an animation pose (like moving the body parts around to make a pose that you like), then selecting further down the timeline to make a new pose that will occur how much you selected down the timeline
I have been working for almost 5 hours straight now, but I cant figure out anything, I keep getting animating problems like nothing showing up and I dont even know how to script, do effects or anything, can you help me :(
Guys, for anyone wondering why it doesent work, roblox started updating too much without fucusing on animations, therefore :LoadAnimation() is not showing up on humanoid, and will error in console saying "animation is untrusted for the place: placeid:0"
Hey for some reason my animations are not working properly and arent doing anything at all, I had the same issue when trying the "How to Make a sword" video you posted a year ago and for some reason the animation doesnt move the hand the tool is being held in. Do you have any ideas why this might be a problem? EDIT: Ive found the Issue, or specifically on the process of animating the tool based on the "How to MAKE a Sword in Roblox" video. The animation of the sword will not move the hand holding the weapon BECAUSE the sword tool was not included in the animation parts, and it needs to be part of the rig when making the animation. I basically took the tips of this video, and the the tips of the video I mentioned in the edit and combined them to have a working sword animation. These vids are very helpful thanks
Thank you for the tip on welding the tool to the Rig; that will be useful for me in the future. Your script didn't work for me but it did lead me to the conclusion that I will have to learn more about scripting welded parts so TY! :)
A lot of people are wondering why the animation isn't working. That's because you have to set the Priority of the animation. The proper, edited code is placed below here. local tool = script.Parent local animation = Instance.new("Animation") animation.AnimationId = [insert the custom animation id here] animation.Priority = Enum.AnimationPriority.Action
This tutorial worked great for me! However, the action animation that my tool plays also replaces the walking animation of the character, meaning the character looks like they're standing still while doing the tool's animation, even when they're also walking. Is there an easy fix for this, or a way to isolate the animation to the right arm only?
Make sure you dont set any key frames for the legs or anything that you arnt actively affecting in the animation, for example only make key frames for the right arm and weapon if thats the only thing being swung in a sword animation.
There's gotta be a better way to do this, because the Tool forces you to hold your hand horizontally, so when the animation starts it messes it up since mine starts with my arm vertical along my character's side to do a jab.
Nice tutorial it worked the first time but when i tried to change the animation id the tool just keeps repeating the animation forever. is there way i can fix it?
I believe you might have turned looping on for your animation. You can simply turn looping off and republish your animation. Thanks for watching, have an amazing day!
Can you do a tutorial no how to do Multiple Items in animation? For Example, If I had Airport batons for ground crew and I needed 2 for animation? Only one pops up, but when I click it, the second one spawns outta the hand
duplicate ur animation and animate the sword it self and once your done remove the player from the animation and then apply the animation to the sword itself
It might be that you dont have your animation right, you need to set your animation priority to 'Movement". You can find this by clicking the three dots in the animation editor, hovering over 'Animation Priority' and click 'Movement'. This should fix it, if you followed everything inside of the tutorial.
For me, as soon as I add the WeldConstraint between the RightHand and the object the rig breaks, when I rotate the arm the entire torso twist instead. Any idea how to fix. (I will probably find a solution before your response but this is weird)
A lot of people are wondering why the animation isn't working. That's because you have to set the Priority of the animation. The proper, edited code is placed below here. local tool = script.Parent local animation = Instance.new("Animation") animation.AnimationId = [insert the custom animation id here] animation.Priority = Enum.AnimationPriority.Action
You sound just like Joe Pera and I love it. I watch your videos when I want to learn something, and when I need to sleep but can’t. Your voice is very relaxing 😊
if i have an idle animation for the sword while its being held how do I have that animation disabled when the swinging one begins. Because they just overlap when i do it
thx for the animation when i use it, but what about when i hold my tool and no not the tool grip i dont want that for maybe my sword but i want when i hold it and i dont use it i just equip it, i hope you respone and just give me the script and steps in the comment and thank you
When I animate weapons, I just put the Tool inside of the Rig I'm going to animate it in and it automatically goes into the Rig's hand (it also serves as a preview for how the Tool looks in-game so you can edit the grip if it's set up incorrectly).
Worked perfectly, thx!
if your animation is continuously playing even after you drop or unequip your tool, you set the animation to play on loop. you must disable the loop and reupload your animation. i just spent 4 hours figuring this out
you deserve more popularity, i love how you later explained what does the script do
Hey I found a solution to hand not moving, you need to go to animation editor click 3 dots and set priority to action
ngl after hours of finding a solution I came across this video and it looked hella promising after watching literally everything else.... so naturally I followed the tutorial perfectly, ive checked my script plenty of times and everything should work. yet my sword never swings, it could be cuz I made it in blender but nothing works.
same
same and its so annoying
so will my sword never work?
@@cocbeanj2419 no, its basically roblox updating how Lua will work on their platform
Are You using a local Script??
😂😂😂😂😂It’s so funny to see you editing
the grip!!! 😂 Great job bro
this works! thank you for the tutorial.
Thank you so much ive been looking for hours!Thanks
local tool = script.Parent
local animation = Instance.new("Animation")
animation.AnimationId = "rbxassetid://YOUR ID HERE"
local debounce = false
tool.Activated:Connect(function()
if debounce == false then
debounce = true
tool.Parent:FindFirstChild("Humanoid").Animator:LoadAnimation(animation):play()
wait(2)
debounce = false
end
end)
THANK YOU!
you're coming in clutch
TYSM, I WAS BORED AND I DIDNT WANT TO TYPE THE SCRIPT UNTILL I FOUND YOU
Now theres a star man!
bro u helped sooo much
thx
ty bro, u helped me actually make something useful for my game.
Tyy!! But if a tool already had animation and the one that already has the tool doesn't work, how do I make it work?
When i add the weld constraint it turn the whole body instead of the arm
THANK YOU! YOU EXPLAINED IT SO WELL!
bro this is a good man his tut worked unlike the other people
this helped me out alot thank you for learnning me!❤
My search bar: "How to an animation with a tool on roblox studio"
Me: "This video seems perfect for my gun I guess"
Him: "Guns are kinda complex"
Me: "💀"
no its easy just take the hand make it go brrr to the sky than make it so it gets down slowly trust me it works well
@@normalestofthemall Yea I kept on trying but I had a "Handle" so then I searched up how to do a custom hold (copy paste) it turned out to be easy then I just placed a motor6d and the gun is finished
Are you trying to make a rohood game as well?
@@joshuafrom5437 nah i quit Roblox
hes saying that cuz guns are hard to make i think, i literally just animated my blender made gun no problem
Thank you so much man, it helped me out so much. Thanks!😀
bro i feel so silly because i was wondering why it wasnt working for like hours and it was because i was making r6 animations and the game was r15 lol, jokes aside great tutorial
yo how do i adapt this to r6
same. Tried to apply r15 when i was using r6 models to animate💀💀
Thank you so much, gonna add this to my game 🙏
What if I’m trying to make the tool spin In my hand?
How do you make it play the animation if its a healing item that disappears when using it?
i was just so confused because when i animated the rig would move around the sword until i realized that the sword was anchored
its impossible to animate with anchored part
Tip: use the tool grip plugin saves so much trial and error time
I have a question, I did the same thing as you did, but with my own knife model, I don't what is wrong but all I know is I used weld constraint to weld all the parts together before welding the handle to the arm, and I already grouped the parts into a tool, but anyways, I can't add any keyframes to the animation, plz help
You add keyframes by going into the animation editor, making an animation pose (like moving the body parts around to make a pose that you like), then selecting further down the timeline to make a new pose that will occur how much you selected down the timeline
You have to weld it through easy weld
I have been working for almost 5 hours straight now, but I cant figure out anything, I keep getting animating problems like nothing showing up and I dont even know how to script, do effects or anything, can you help me :(
I can help you, what’s the problem that’s happening?
an easier way to edit the grip is by using egomooses tool grip plugin
what if the tool your using needs multiple parts animated, instead of one base tool?
Can u make a tutorial how to make second floor in ur tycoon tutorial series?
Does this works with other body parts?
Hey i think why it doesnt work is because your script doesnt have a function that activates the animation with mousebutton1
This is so good!!!!!!!! IT worked !!!
What if I need more than 1 slash animation should I just copy paste the rbxasset how many slashes I need then put different id for the slash?
I CAN SEE MY AXE ANYWHERE BUT WHEN I GO INTO EDITING I SEE IT CLEARLY
Really Helpful, But i'm trying to animate a ball, Which shouldn't be glued to the Rig...
It works but how do you make it so it deals damage and plays an audio when you click?
it toggles the animation and doesnt stop the animation even if you unequip the tool, i need help :(
Guys, for anyone wondering why it doesent work, roblox started updating too much without fucusing on animations, therefore :LoadAnimation() is not showing up on humanoid, and will error in console saying "animation is untrusted for the place: placeid:0"
I didn't get this error personally as of November 18th 2024
So how do I fix it?
@@paifu. can you please show me your script, i still keep getting this error
@@soupjesus3631 i dont knw
it doesn't even give me an error
Hey for some reason my animations are not working properly and arent doing anything at all, I had the same issue when trying the "How to Make a sword" video you posted a year ago and for some reason the animation doesnt move the hand the tool is being held in. Do you have any ideas why this might be a problem?
EDIT: Ive found the Issue, or specifically on the process of animating the tool based on the "How to MAKE a Sword in Roblox" video. The animation of the sword will not move the hand holding the weapon BECAUSE the sword tool was not included in the animation parts, and it needs to be part of the rig when making the animation.
I basically took the tips of this video, and the the tips of the video I mentioned in the edit and combined them to have a working sword animation. These vids are very helpful thanks
Tysm ur a life saver ive been trying to figure out why the hand holding the sword never moves for me
Why did I delete the rigggggggggg
can you make a tutorial on how to make a viewmodel (first person) for a tool please
Ids why but its not working for me isk but its probably because i am using a blender modal but idk
Thank you for the tip on welding the tool to the Rig; that will be useful for me in the future. Your script didn't work for me but it did lead me to the conclusion that I will have to learn more about scripting welded parts so TY! :)
His script worked for me!
Amazing video, rly helped me :D
It works perfectly thank you!!!!!!!
A lot of people are wondering why the animation isn't working. That's because you have to set the Priority of the animation.
The proper, edited code is placed below here.
local tool = script.Parent
local animation = Instance.new("Animation")
animation.AnimationId = [insert the custom animation id here]
animation.Priority = Enum.AnimationPriority.Action
It says that animationproperty is not a proper member of enum
@MINDLEZZ.MP3 if so, have a pre-made animation instance in the script then change it from there
You forgot the : at (animation):Play()
@@MINDLEZZ.MP3 then make an actual animation instance in the script then base it off of that
I don’t know why but I can only put in the weldconstraint as part 0 righthand but I can’t put the model in part 1 pls help
bruh idk why but when i use my own sword it just breaks and spins around like crazy hell :\
when i tried you method
super helpful. Just the direction I needed 🙏
this is a gem of a video
This tutorial worked great for me!
However, the action animation that my tool plays also replaces the walking animation of the character, meaning the character looks like they're standing still while doing the tool's animation, even when they're also walking.
Is there an easy fix for this, or a way to isolate the animation to the right arm only?
set the animation priority to action instead of movement
also, in addition to the guy above me, don't animate the legs at all, just animate the torso
Make sure you dont set any key frames for the legs or anything that you arnt actively affecting in the animation, for example only make key frames for the right arm and weapon if thats the only thing being swung in a sword animation.
Im trying to make a weapon swing but how do i do that?
if u dont understand what i mean i mean by like swinging a swinging mace
so it works in studio but when i play the game it doesnt work anymore, why is this??
Did you do scrip or local scrip?
@@TDI_FOREVER I fixed it, it turns out the animation needs to be created by The owner of the game, in this case it was my group, not me.
For some reason it didn’t work for me do you have a script I can copy and use?
Is there a way i can do the same, but binded to right click?
How do you convert a mesh into studio? I'm confused at the moment.
yo im trying to animate a swing animation on a shared place and the animation only appears for whoever publishes it to roblox
I can do this on my game thanks!
Yo bro, whenever I play game and hold the tool I get ragdolled, how do I fix that?
Love you Rig
Thanks, this helped a lot:)
--{ VARIABLES }--
local tool = script.Parent
local animation = Instance.new("Animation")
animation.AnimationId = "rbxassetid://"
--{ FUNCTIONS }--
tool.Activated:Connect(function()
end)
finally, a hero
not all heroes wear capes
W
You need to add more - at end
local tool = script.Parent
local animation = Instance.new("Animation")
animation.AnimationId = "rbxassetid://"
local debounce = false
{ FUNCTIONS }
tool.Activated:Connect(function()
if debounce == false then
debounce = true
tool.parent:FindFirstChild(" Humanoid") .Animator:LoadAnimation(animation):play ()
wait(3)
debouce = false
end
end)
my animation is glitched where it only moves my hand
at the animation only palys when i ahve it in the inventory not when i holt it
it works but why when i unequip the tool the animation get stuck
hey un anchor it
Why won't the animation play in R6? Does the dummy have to be R6?
I'm trying to make a noob pull a sword out of a rock, how do I make the sword stay in the rock until he pulls it out
I cant pick the sword up. Can you help me figure out?
Is it the part inside the tool named handle?
Hey, Just asking, How do you make it so that the hand holding the tool actually moves because it doesn not work for me
same
@@user-dp1fz9pg1b I know how to fix it, click the three dots in the animator and then set animation priority to like action 4 or smh
There's gotta be a better way to do this, because the Tool forces you to hold your hand horizontally, so when the animation starts it messes it up since mine starts with my arm vertical along my character's side to do a jab.
animation plays but then i randomly start jumping bru
BRO OMG YOU ARE MY SAVIOR IM FINALLY FREE FROM WATCHING TUTORIALS BECAUSE OF YOU TYSM
I did everything right like on the video but it didn't work did I do wrong I'm confused
it WORKED,THANKS
NEVERMIND IT WORKED PERFECTLY DID ONE MISTAKE TYSM
What if i want it to become a part of the rig so i can animate it as a seperate body part?
2:16 So i did this part, but the model I'm using that I made in blender isn't appearing in the part1 slot. What did I do wrong?
I have a problem. If i am trying to move like right hand it will move me the full Dummy. How can i fix it?
just remove the old dummy and insert a new dummy (I've had the same thing happened to you!)
how do you move the tool when animating?
it should automatically move with your arm
Can you make it work with models?
Nice tutorial it worked the first time but when i tried to change the animation id the tool just keeps repeating the animation forever. is there way i can fix it?
I believe you might have turned looping on for your animation. You can simply turn looping off and republish your animation. Thanks for watching, have an amazing day!
Can you do a tutorial no how to do Multiple Items in animation? For Example, If I had Airport batons for ground crew and I needed 2 for animation? Only one pops up, but when I click it, the second one spawns outta the hand
this is cool and all, but how do you add effects to it? Like meshes and stuff for VFX
i think u gonna make cool game
How do I make the sword act independently than the rest of the body?
duplicate ur animation and animate the sword it self and once your done remove the player from the animation and then apply the animation to the sword itself
It just doesnt work for me, I am definately doing something wrong but i cannot figure out what for the life of me
It might be that you dont have your animation right, you need to set your animation priority to 'Movement". You can find this by clicking the three dots in the animation editor, hovering over 'Animation Priority' and click 'Movement'. This should fix it, if you followed everything inside of the tutorial.
@@Jack_12.1 thanks!
mins making such tutorual for r6 rigs where i can rotate the tool separete from the rig?
Do MoonAnimator Works for the animation to get published into Roblox Library?
Can anyone please help it isn’t playing the animation?
can u pls copy and paste the script and reply to me the time i write it all GTA 6 will come out
One problem i get is that the animation keeps playing, looping over and over again
TY TY TY TY TY SO MUCH I FINALLY FIGURED IT OUT IN 6 MONTHS TY tysm tysm tysm tysm tysm tysm tysm tysm tysm tysm tysm tysm tysm
the code dosn't work for me
For me, as soon as I add the WeldConstraint between the RightHand and the object the rig breaks, when I rotate the arm the entire torso twist instead. Any idea how to fix. (I will probably find a solution before your response but this is weird)
you probably welded the right arm to the torso instead of welding the right arm to the weapon
@@Dhreilol Solved it, the item was anchored lmao
Is there a way to fix this? The animation works except when i use the sword the right arm stays still instead of moving up
A lot of people are wondering why the animation isn't working. That's because you have to set the Priority of the animation.
The proper, edited code is placed below here.
local tool = script.Parent
local animation = Instance.new("Animation")
animation.AnimationId = [insert the custom animation id here]
animation.Priority = Enum.AnimationPriority.Action
@@Johansanimations thank you so much
@@anchovytheCREATOR yw
You sound just like Joe Pera and I love it. I watch your videos when I want to learn something, and when I need to sleep but can’t. Your voice is very relaxing 😊
Why thank you! That's a very nice compliment. I hope you have an amazing rest of your day!
Can u make so the sword does damage?
for some reason my model isn't going into par1, is it because I took it from the toolbox?
No, it's because you can't weld a model. You need to find the part inside the model and put that in par1.
@@harrystopalidis thanks 🙏
@@PhilCha-ne8bn No problem!
if i have an idle animation for the sword while its being held how do I have that animation disabled when the swinging one begins. Because they just overlap when i do it
Did u figure it out I’m having the same problem
thx for the animation when i use it, but what about when i hold my tool and no not the tool grip i dont want that for maybe my sword but i want when i hold it and i dont use it i just equip it, i hope you respone and just give me the script and steps in the comment and thank you
how do i convert a model to a part?
idk why but every time i tried to animate with r15 i could only move certain parts and the one part would move the whole thing
yeah same for me but with r6