How to Animate a Tool | Roblox Studio | Updated

preview_player
Показать описание
If this video helped you out, don't forget to Like and Subscribe!

#robloxstudio #roblox
Рекомендации по теме
Комментарии
Автор

Man, I've been searching all these times bruh, sometimes the animations wouldn't switch up correctly and stuff, and I was doing it client side that is what it wasn't working, thanks bro, massive shout out to you

Stronghold_Dev
Автор

Aint no way, i cant believe this actually worked, dude you are a genius i've been looking in ways to fix my tools not playing any animations and after thousands of videos i finally found yours, u deserve more subs fr !

Life Saver😭I almost quit scripiting and development

Real_Feeki
Автор

Went looking for a tutorial for this and I came across a few issues.
(I have hashed together a fix for the welding issues. See the script at the bottom of the comment. Animations will play as animated, any moving tool parts will properly animate and the tool will be attached to the player's arm).

1. The animation script (your warhammer animation script in the video) for the weapon doesn't disable/ set to false properly, and such doesn't swap back to the default animations when the tool is unequipped.

2. Unlike tools with a Handle set up properly, the BodyAttach doesn't attach to the player's rig. Mine was set up to weld to the Right Arm but instead just dropped to the location it was constructed at (I didn't set the location to 0, 0, 0)

3. There was an issue with the Motor6D localscript where inside of tool2 had the tool's name and was causing issues on line 11. Removing the tool's name stopped the error in the output logs, but didn't fix anything overall (thanks to a commenter with the same error..

However, I made a duplicate of my tool (1:1, scripts included) and it welded perfectly to the right arm. The only issue was that it wasn't welding with a Motor6D and was welding the usual, Handle way (means no animations that move the tool about).

I noticed a few times that people have been told to "just check spelling" and I have approximately 5 times. There is bound to be a really simple fix, like just renaming BodyAttach to Handle (probably not)ᵉᵈᶦᵗ ¹, or something just as simple but for now it's very broken.

Will edit the comment with any updates if any should occur. I am going to cross reference a few other, similar tutorials but Motor6Ds have been very hacky for a while now.
--==--==--==--
edit 1: Keeping the RequiresHandle to false but renaming the BodyAttach to "Handle" treats it like RequiresHandle is true. Welds like a regular tool without the Motor6D. I even renamed BodyAttach to "Grip" and that didn't work.

edit 2: Haven't actually tested this yet, but Ludius has a similar script for welding the Motor6d to the player (or at least the right arm, which is what I need). I tried Ludius's system about a week ago with 0 changes and it didn't work, but the welding script MIGHT. If all else fails I'll resort to winging it with ChatGPT or something.
edit 2.1: Ludius's system isn't designed for tools for some weird reason. The quest for a fix continues.

--==--==--==--
Final(?) edit. The main issue was with how the Motor6d welded to the player's arm. You don't need remote events or anything fancy, or even a script inside serverscriptstorage.
Here's my script. Its a localscript inside the Motor6d. It worked for me at least.

local motor6D = script.Parent
local tool = motor6D.Parent
local bodyAttach =

if not bodyAttach then
warn("BodyAttach part not found in the tool")
return
end

local function attachToPlayer()
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local rightArm = or Arm")

if not rightArm then
warn("Player's right arm not found")
return
end

motor6D.Part0 = rightArm
motor6D.Part1 = bodyAttach

motor6D.C0 = CFrame.new()
motor6D.C1 = CFrame.new()
-- Not strictly necessary, I just feel it's buggier without. Personal preference, add a comment (comments start with "--") before "motor6d" on the C1/C0 to see how your tool performs
end

if tool:IsA("Tool") then

end

I'm working around the clock to make a fixed animation handler for these, its buggy at best as of right now. If your animation for your weapon persists after the tool is unequipped, the issue is how the animations are handled.

calciummn
Автор

Really great job man, appreciate it !

zowtopy
Автор

1:30 If it doesn't work it's because its a weld and not a motor6D. Just do it again and it should work

therobloxbaconman
Автор

I think this is pretty great but can you do this with multiple tools/weapons?

MACORONI
Автор

everything works except for my animations for some reason?

moon animator all exports come out with an error (it's updated) so i used the roblox animator and the weapon doesn't move.
ion really know what to do since nobody uses the roblox animator so i can't find any way to fix it and i can't find a fix for moon animator.

am i cooked.

Maculata.
Автор

Can you make another video making a katana? But super detailed? Absolutely love your videos btw, you've helped me with so much 😅

Red_Silo
Автор

Love the tutorial. I remember when I was researching this very topic a couple weeks ago it took me hours to figure out. This video explains pretty much most stuff you need to know.

Now I wonder is it possible to make your character hold the tool without it returning to the original point while walking (Just like in 8:24)? Basically so the top part of the character is controlled by the warhammer idle animation but the legs follow the walk animation. Is it possible to blend animations together like this? Or do you need to remake a waking animation seperately for each tool... ?

progargantua
Автор

i had a thing where i folowed the steps and i joined the tool to the charecter root part it animated the pleyer around the tool not the tool relative to the pleyer, i did like 12 difrent variations and sequences sawell as trying to do it with difrent charecter parts, pls make vid where it explain it more detail.- edit : i got it to work - edit edit - dosent work, multiple erros saying that stuff dosent get registered / detected, and the tool dosent go to the pleyer in the animaton + animation dosent play.

jurisbalta
Автор

When I die or reset my animation stops working
And I tried to use
But it broke the script

Elprisus
Автор

it doesn't work for me, if I weld the humanoid root part with the bodyattahment, when I move the bodyattachment, it doesn't but instead humanoid root part does

imhithithit
Автор

Yall need to stop using moon animator for these tutorials

archy
Автор

I’m trying to add physics to the hair in my game. While also letting the players equip the hair with the added physics onto it. Do you have any idea on how to do that? I can’t seem to find any good tutorials on how to do it. I have a macbook pro laptop (i’m not sure if that matters at all).

Barbianah_
Автор

there were tons of scripts not included in the description, so i can't make the animation. Can you put them in the desc please?

Protoegen
Автор

did i just learned to but anime on my tool in roblox studio?

BasBe-vk
Автор

The sword just spawns inside me. But i animated it in my hand. Sword doesnt play the animation while my character does. Thats my problem and i saw some comments about it

rhaastlohengrin
Автор

I'm having an issue where the tool does animate but doesn't move to the place I want it to, it's stuck in the torso/hand? When it's supposed to be somewhere else. I checked the tool and Requires handle is off, and there's no grip position. I also rewelded it a few times and it didn't help.

BIPLARISTIC
Автор

can you make a short tutorial about making slash effects and using them

ayazcakmak
Автор

Thanks for this, but do you have any alternative for the easy weld tool? cant find it on my plugin list because i dont have moon animator

renowation