How to MAKE a Sword in Roblox Studio

  Рет қаралды 56,532

Rustysillyband

Rustysillyband

Күн бұрын

Пікірлер: 425
@Ksudrix
@Ksudrix Жыл бұрын
script for lazy people like me :) tool = script.Parent debounce = nil function Attack() if debounce == nil then local anim = tool:WaitForChild("Animation") local humanoid = script.Parent.Parnt:WaitForChild("Humanoid:) local animTrack = humanoid:LoadAnimation(anim) animTrack:Play() debounce = true wait(0.9) debounce = nil end end tool.Activated:Connect(Attack) tool.Handle.Blade.Touched:Connect(function(hit) local player = game.Players:GetPlayerFromCharacter(hit.Parent) if player and debounce == true then player.Character:WaitForChild("Humanoid").Health -= 3 end end)
@rustysillyband
@rustysillyband Жыл бұрын
Thanks! I forgot to put the script there lol!
@lapritongworls
@lapritongworls Жыл бұрын
updated one: tool = script.Parent debounce = nil function Attack() if debounce == nil then local anim = tool:WaitForChild("Animation") local humanoid = script.Parent.Parnt:WaitForChild("Humanoid") local animTrack = humanoid:LoadAnimation(anim) animTrack:Play() debounce = true wait(0.9) debounce = nil end end tool.Activated:Connect(Attack) tool.Handle.Blade.Touched:Connect(function(hit) local player = game.Players:GetPlayerFromCharacter(hit.Parent) if player and debounce == true then player.Character:WaitForChild("Humanoid").Health -= 3 end end)
@gavinlamar1230
@gavinlamar1230 Жыл бұрын
please make the word parentcorrect
@BrodyPlayzz
@BrodyPlayzz Жыл бұрын
You both made a false On Local humanoid = script.parent.*parnt* you missed spelled that’s-_-
@Sunguy123
@Sunguy123 Жыл бұрын
updated one: tool = script.Parent debounce = nil function Attack() if debounce == nil then local anim = tool:WaitForChild("Animation") local humanoid = script.Parent.Parent:WaitForChild("Humanoid") local animTrack = humanoid:LoadAnimation(anim) animTrack:Play() debounce = true wait(0.9) debounce = nil end end tool.Activated:Connect(Attack) tool.Handle.Blade.Touched:Connect(function(hit) local player = game.Players:GetPlayerFromCharacter(hit.Parent) if player and debounce == true then player.Character:WaitForChild("Humanoid").Health -= 3 end end)
@_levi20
@_levi20 Ай бұрын
tool = script.Parent debounce = nil function Attack() if debounce == nil then local anim = tool:WaitForChild("Animation") local humanoid = script.Parent.Parent:WaitForChild("Humanoid") local animTrack = humanoid:LoadAnimation(anim) animTrack:Play(0) debounce = true wait(0.9) debounce = nil end end tool.Activated:Connect(Attack) tool.Handle.Blade.Touched:Connect(function(hit) local player = game.Players:GetPlayerFromCharacter(hit.Parent) if player and debounce == true then player.Character:WaitForChild("Humanoid").Health -= 3 end end) dont sweat it peeps! also thank you so much this is very strait forward tutorial and it really helped me learn how to make weapons. you have earned a sub from me! Thank You!
@evanstiles1142
@evanstiles1142 9 ай бұрын
thank you. This is the only video going in depth and explaining the code and answering questions that some might ask
@tarts5688
@tarts5688 Жыл бұрын
Bro ur deadass like really good at explaining things
@rustysillyband
@rustysillyband Жыл бұрын
Glad you think so!
@CasterRational
@CasterRational Жыл бұрын
@@rustysillyband fr bro every other person I watched can’t explain this good…
@sashuniverse2753
@sashuniverse2753 Жыл бұрын
Soo right when I saw other I was like uhhhh this one?
@Jupjur
@Jupjur Жыл бұрын
I’VE BEEN LOOKING FOR THIS FOR A MONTH, NON WORKED AND THIS ONE DOES NOW I CAN CONTINUE WITH MY GAME TYSMMM
@rustysillyband
@rustysillyband Жыл бұрын
No problem! I've got plenty of other tutorials if you need them!
@IAMCRAZY811
@IAMCRAZY811 Жыл бұрын
Let go bro u did my idea! Thank u! I can now make a sword and make a horror game. Thank u so much!
@rustysillyband
@rustysillyband Жыл бұрын
Thanks for watching! Is this going to be your first horror game?
@IAMCRAZY811
@IAMCRAZY811 Жыл бұрын
@@rustysillyband yeah
@Train2822
@Train2822 Жыл бұрын
How to be first in Rusty’s video: 1. Subscribe! 2. Turn on full notifications! 3. Put your volume in 100% so the notification will sound in your ear
@rustysillyband
@rustysillyband Жыл бұрын
LOL, if it works, it works!
@MeDoge351
@MeDoge351 Жыл бұрын
DUDE THIS PERSON EXPLAIN BETTER THAN ANYONE DUDE FR😊😊😊
@krzysiek3216
@krzysiek3216 Жыл бұрын
How to have something like screen before u start the game like u have buttons to start setting credits and like these
@rustysillyband
@rustysillyband Жыл бұрын
Sure I could try and make a tutorial on that!
@TetrisanUranu
@TetrisanUranu Жыл бұрын
first tutorial that i fully understand, thank you
@Luke-kf9kn
@Luke-kf9kn Жыл бұрын
Thx i havent watched vid jet but o think itll be useful
@rustysillyband
@rustysillyband Жыл бұрын
Thanks!
@Roblotic21
@Roblotic21 6 ай бұрын
TYSM this was so helpful i was able to make an equip animation function for it to but ended up scrapping it lol
@anniyahvive
@anniyahvive Жыл бұрын
Dude this helped me so much. THANK YOU!
@BuldsOffice
@BuldsOffice Жыл бұрын
How did you rig the dummy since the new ROBLOX update doesn't let you?
@wiceh850
@wiceh850 Жыл бұрын
Rusty you're so good!
@rustysillyband
@rustysillyband Жыл бұрын
Thank you!
@Soulz-Studios
@Soulz-Studios 6 ай бұрын
The sword is being held on the side instead of upright also no animation plays i have no idea how to fix any of this but it is quite annoying also how did you make the handle part so small it seems impossible
@campbellduncan8533
@campbellduncan8533 6 ай бұрын
im not sure about the animations, but for the sword to be facing the correct way make sure the "Handle" is rotated correctly
@LowSkillFun
@LowSkillFun 4 ай бұрын
Hey man love the work, u got a model for this we can get?
@Supremenent
@Supremenent 8 ай бұрын
HEY RUSTY LUV U BRO! AMAZING KZbinR
@TemplOfNubs
@TemplOfNubs Жыл бұрын
tysm, great video, keep it up
@Hung-ql7qr
@Hung-ql7qr Жыл бұрын
Thank you but can you teach me doing knockback instead of damage when attack pls.
@rizoki2920
@rizoki2920 Жыл бұрын
This is so useful
@rustysillyband
@rustysillyband Жыл бұрын
Thanks hope it helps!
@astrolilt1433
@astrolilt1433 Жыл бұрын
@@rustysillyband I don't have the rig builder can u help?
@rustysillyband
@rustysillyband Жыл бұрын
@@astrolilt1433 You can find it in the Avatar Tab on the top. Thanks for watching!
@wiceh850
@wiceh850 Жыл бұрын
Rusty i love your videos! Can you make a video on how recreate the crucifix like doors please?
@rustysillyband
@rustysillyband Жыл бұрын
I can definitely try, there are a few things that kind of balance off the crucifix like seek and rush and all the other entities too.
@wiceh850
@wiceh850 Жыл бұрын
@@rustysillyband Thanks! When you can, please do the tutorial
@Train2822
@Train2822 Жыл бұрын
Also, like Seek, or Figure… the crucifix can’t destroy them with animations because they’re 3D
@rustysillyband
@rustysillyband Жыл бұрын
@@wiceh850 I will!
@rustysillyband
@rustysillyband Жыл бұрын
@@Train2822 Wow, you really know your Doors facts! Keep up the great work!
@GD6_1
@GD6_1 Жыл бұрын
For Lazy People Defintly not me... local tool = script.Parent debounce = nil function Attack() if debounce == nil then local anim = tool:WaitForChild("Animation") local humanoid = script.Parent.Parent:WaitForChild("Humanoid") local animTrack = humanoid:LoadAnimation(anim) animTrack:Play() debounce = true wait(0.9) debounce = nil end end tool.Activated:Connect(Attack) tool.StickPart.Touched:Connect(function(hit) local player = game.Players:GetPlayerFromCharacter(hit.Parent) if player and debounce == true then player.Character:WaitForChild("Humanoid").Health - 5 end end)
@rustysillyband
@rustysillyband Жыл бұрын
Thanks for helping out!
@catfish_gamer
@catfish_gamer Жыл бұрын
Than you so much! It was very helpfull!
@rustysillyband
@rustysillyband Жыл бұрын
You're welcome!
@sigmarizzler120
@sigmarizzler120 Жыл бұрын
Could you do a tutorial on how to make an animation with this sword?
@rustysillyband
@rustysillyband Жыл бұрын
I did, in the video I showed how to make animations for the sword.
@sigmarizzler120
@sigmarizzler120 Жыл бұрын
@@rustysillyband Sorry dumb question i just got to that part xD
@tobyhero287
@tobyhero287 Жыл бұрын
my fucking animation dont work it says failed to load animation wtf to do im so freking lost
@frootloopii
@frootloopii 9 ай бұрын
My animation wasn't working at first even though the entire script was accurate but I fixed it! I changed the game settings to R6!! MY animation only worked for R6 models!!! game settings>avatar> avatar type> R6
@ghostwarrior3774
@ghostwarrior3774 Жыл бұрын
Thank you so much! The best tutorial I've seen yet on this topic!
@siehaoxuan
@siehaoxuan Ай бұрын
thats, i was trying to make a jjk style game and was trying to make the kamutoke from jjk
@PressThisButton
@PressThisButton Жыл бұрын
Ive been working for 2 hours and It didnt work 😢when i pick the sword im the hamd the character goes in the position of the sword and stucks in the air ,thanks for the tutorial btw
@dandewsirbello
@dandewsirbello Жыл бұрын
Same thing happened to me, make sure to unanchor everything and it should fix it
@Wolfpolie2006
@Wolfpolie2006 Жыл бұрын
Wow thank you for this tut i really appreciate it!
@Lord_raichu6369
@Lord_raichu6369 Жыл бұрын
Thank you for helping me!
@oliverhumphreys8141
@oliverhumphreys8141 Жыл бұрын
what if i want to change how the sword looks after?
@tiredlazer
@tiredlazer Жыл бұрын
just man i love the content, there is one problem i have. When my animation is in progress the arm that has the sword wont move . Can you fix this please?
@sirbmk_violet
@sirbmk_violet Жыл бұрын
Hey, i've got a problem, my sword hits the player multiple times, thus making it insta-kill, even with the debounce, it still hits the player too many times, i only want it to hit 1 time, and a cooldown, can someone help me please?
@jollybozo
@jollybozo Жыл бұрын
Yo, i followed this tutorial exactly but when i try to swing my sword it simply doesnt play the animation, how can i fix this?
@CraftedConnections
@CraftedConnections 6 ай бұрын
Check your animation object and make sure you copied your animation Id into it
@Shine122.
@Shine122. 5 ай бұрын
16:24:05.526 Blade is not a valid member of Tool "Workspace.sword.Handle" - Studio how do i fixed
@JozinZeBazin
@JozinZeBazin Ай бұрын
make sure that the part that is going to damage the players has the name Blade, or change the Blade in the script to the part name.
@templeofdrasiya
@templeofdrasiya Жыл бұрын
I cant seem to get my sword to swing for nothing i managed to figure out everything accept the animation to swing the sword when i click the button
@alexenglan166
@alexenglan166 6 ай бұрын
i tried to do it but the animation wont play when i click to swing the sword. Does anyone know how to fix it or what I did wrong.
@bloxanim8444
@bloxanim8444 Жыл бұрын
Rust your amazing but what if you wanna make attack1, attack2, and a final attack what do I do?
@DC21isbackagain
@DC21isbackagain 9 ай бұрын
like blox fruits?
@campbellduncan8533
@campbellduncan8533 6 ай бұрын
This made my day
@s_tupid1256
@s_tupid1256 Жыл бұрын
Hey,I used to do roblox coding and might get back into it. For the script. I'm used to js so for the hit function function(hit) where is hit defined,if it isn't is it a variable already instated by roblox
@rustysillyband
@rustysillyband Жыл бұрын
Great question! Parameters are placeholders through which values can be passed into functions, if that makes sense. They aren't specifically variables..
@boogieman541
@boogieman541 Жыл бұрын
i made a sword in blender and ut it in game but when i drag it into starter pack it goes invisable
@rustysillyband
@rustysillyband Жыл бұрын
Hi there! That's because the workspace holds everything that you see in the 3d Viewport which is your experience. So when we move something out of the workspace, it's no longer visible. However, you can drag it back into the workspace at any time if you would like. Thanks for watching!
@TJ_Maf15
@TJ_Maf15 10 ай бұрын
finally a tutorial that explains things
@livelycrab
@livelycrab Жыл бұрын
This is cool, but I got a few questions. 1: idk if I accidentally skipped it but can I make a system to sheath the sword? 2: can I make it to where the sword deals damage and the other player who’s getting attacked takes damage? 3: do I have to use parts or is it possible to use a already made model as the sword? 4: if I can make the sword sheath how do I make that sheath attach to the player? A lot of questions sorry
@livelycrab
@livelycrab Жыл бұрын
And one more question, is it possible to change the animation for each hit? For example, the first click makes the sword swing left, then the second click makes the sword swing right
@rustysillyband
@rustysillyband Жыл бұрын
1. Yes, you can make a sheathe system, I am currently figuring that one out, but I will try and make a tutorial on that as soon as I possibly can. 2. Yes, in the tutorial I showed you how to make the sword deal damage to other players. 3. Yes you can use a model as the sword, but I'd still recommend having the Handle as a part. 4. I will be showing that in my tutorial as soon as I make it. Thanks for watching! :)
@rustysillyband
@rustysillyband Жыл бұрын
@@livelycrab Yes that would be possible, I will also be making a tutorial on that very soon. :)
@livelycrab
@livelycrab Жыл бұрын
@@rustysillyband ty
@SlayerStevie
@SlayerStevie Жыл бұрын
Easier said then done but if anyone can do it it’s you !
@FRAGGERYT
@FRAGGERYT Жыл бұрын
can you make a tutorial on how you make a sword in blender than exports it to ROBLOX and makes to fully functional
@rustysillyband
@rustysillyband Жыл бұрын
Good idea!
@daviribeiro7186
@daviribeiro7186 Жыл бұрын
Thank you! The only issue I have is that the damage on the sword can be spammed even with the debounce. Can someone help me how to solve it?
@smuglety7922
@smuglety7922 Жыл бұрын
try setting a longer wait time in the script or changing the speed on your animation itself that worked for me
@akisearu8868
@akisearu8868 Жыл бұрын
Hey I’ve been having some trouble getting my animations to work. I copied all the code just to double check and that wasn’t the issue. This seems to be a consistent issue for me because I can’t get any of my animations to play no matter what video I watch. I made sure I put it on action and even used my own animation link multiple times. I clicks and nothing happens
@rustysillyband
@rustysillyband Жыл бұрын
Are there any errors in the script? You can check by going to the View tab on the top, and then opening up the Output. If so, can you send me your errors? Otherwise, please send me your script and I'll take a look at it.
@loganm-gg3vl
@loganm-gg3vl Жыл бұрын
same
@thelostwanderergames4287
@thelostwanderergames4287 Жыл бұрын
Same
@CasterRational
@CasterRational Жыл бұрын
@@rustysillyband i think she means this (the same problem I have) : When I click while holding my sword the animation won’t play, it’s not the animations fault. I guess it’s just activating my sword by clicking it didn’t work like how yours did. Pls help if you know the solution to this
@CasterRational
@CasterRational Жыл бұрын
@@rustysillyband WAIT I FOUND THE PROBLEM IM SO SORRY EVERYONE all you have to do is add a click detector to your tool then the activate part of the script works :DDD
@Coopize
@Coopize Жыл бұрын
How would i make it so the script kills rigs placed into game
@Coopize
@Coopize Жыл бұрын
or dummys
@rustysillyband
@rustysillyband Жыл бұрын
I've got a great tutorial on that here: kzbin.info/www/bejne/qqLUlGishq6pkNE
@Coopize
@Coopize Жыл бұрын
thanks bro!
@Babymoonleader
@Babymoonleader Жыл бұрын
Can you please make an video to how to make an blender sword as an starter tool
@Shine122.
@Shine122. 5 ай бұрын
@rustsillyband i have a im having issues where coomplanining all of the scripting it come up WITH A RED 3 HOW DO I FIXED IT
@LoriJojosPlayground
@LoriJojosPlayground 5 ай бұрын
I'm using a M1 System and this causes them to clash together, is there any way i can make it so whenever i equip the knife it makes the M1 System pause / Disable it?
@oiiaoiia19
@oiiaoiia19 10 ай бұрын
My brain it hurts
@Quiethings
@Quiethings Жыл бұрын
THANK YOU FOR THIS VIDEO GOOD LORD THANK YOU
@NeverEverFaceTheDark
@NeverEverFaceTheDark Жыл бұрын
You are a great teacher. Left nothing out
@rustysillyband
@rustysillyband Жыл бұрын
Thank you! I appreciate it a lot!
@itzdarkin
@itzdarkin 11 ай бұрын
@@rustysillybandwhy my animation isnt working for the holder hand
@Mayonnaise_Vr
@Mayonnaise_Vr 6 ай бұрын
do you know how to make the item not lock in place?
@mosqit4324
@mosqit4324 4 ай бұрын
unanchor it
@scrumt
@scrumt Жыл бұрын
During the animation, my character's arm wont move for whatever reason. The animation plays, but the players arm seems to be completely still in the position it does while holding the sword. Maybe I missed a step?
@Zawaito
@Zawaito Жыл бұрын
Check if the animation is in the right place, maybe it is just affecting the sword Also check if the sword is in the right place... Probably is but its a good check anyways
@break6575
@break6575 Жыл бұрын
Thanks, but i have one issue.. Before i did the debounce, i had some trouble where the sword just never played the animation. (edit: i finally realized that it was playing, but you can only use the sword as you equip it)
@Zawaito
@Zawaito Жыл бұрын
.activated:connect will check if the tool was activated, which baseline for roblox is m1 If you want for something to play without havig an item in hand you could use user input service to find when m1 is used There is a really good video on that by spark730 called "how to make a combat system: m1"
@beeanimations5100
@beeanimations5100 Жыл бұрын
when i make an animation and try to publish it, it says error 442
@Lenoxzz
@Lenoxzz 6 ай бұрын
tysm man
@G0dC0mplex
@G0dC0mplex Жыл бұрын
This is a Nice video! But can u also make a way so u can use more animation??
@rustysillyband
@rustysillyband Жыл бұрын
Such as like a combat system? With multiple animations?
@G0dC0mplex
@G0dC0mplex Жыл бұрын
@@rustysillyband yeah.
@HotSpot2020_Shorts
@HotSpot2020_Shorts Жыл бұрын
Rusty the debounce is broken it just loops the animation
@lwpeacekeeper
@lwpeacekeeper 11 ай бұрын
if you guys are wondering how to make it also damage npcs i made this: tool = script.Parent debounce = nil function Attack() if not debounce then local anim = tool:WaitForChild("Animation") local humanoid = script.Parent.Parent:WaitForChild("Humanoid") local animTrack = humanoid:LoadAnimation(anim) animTrack:Play(0) debounce = true wait(0.9) debounce = false end end tool.Activated:Connect(Attack) tool.Handle.Blade.Touched:Connect(function(hit) local HitPart = hit.Parent if HitPart and debounce == true then HitPart:WaitForChild("Humanoid").Health -= 3 end end)
@wawuCat
@wawuCat 7 ай бұрын
u right!
@tresfregosa7379
@tresfregosa7379 6 ай бұрын
you are a hero bro
@lwpeacekeeper
@lwpeacekeeper 6 ай бұрын
@@tresfregosa7379 thanks
@dyll8200
@dyll8200 5 ай бұрын
Thank you bro, I copied someone else's script and my animation didn't work, but copying yours did and it also does dmg :)
@lwpeacekeeper
@lwpeacekeeper 5 ай бұрын
@@dyll8200 no problem
@Elpato188
@Elpato188 4 ай бұрын
i have the tool, but when i pres it the sword appears on the floor and it dosent follow me
@Giveyeeto
@Giveyeeto Жыл бұрын
tool = script.Parent debounce = nil function Attack() if debounce == nil then local anim = tool:WaitForChild("Animation") local humanoid = script.Parent.Parnt:WaitForChild("Humanoid:) local animTrack = humanoid:LoadAnimation(anim) animTrack:Play() debounce = true wait(0.9) debounce = nil end end tool.Activated:Connect(Attack) tool.Handle.Blade.Touched:Connect(function(hit) local player = game.Players:GetPlayerFromCharacter(hit.Parent) if player and debounce == true then player.Character:WaitForChild("Humanoid").Health -= 3 end end)
@reapersploits
@reapersploits Жыл бұрын
it isn't doing the swing animation or anything for me. Can anyone help?
@logantjawustestdugerne4066
@logantjawustestdugerne4066 Жыл бұрын
When I put the sword in starterpack the touch interest isn’t there anymore
@thanatosgreekgodofdeath1684
@thanatosgreekgodofdeath1684 8 ай бұрын
does having too many weld constraints cause problems? i followed your instructions using my sword modle but for some reason when i equip it. the sword makes me spin around slowly and it is a few meters away
@ThetrueIdiot6969
@ThetrueIdiot6969 7 ай бұрын
ur sword got collision on?
@JFDavoded
@JFDavoded Жыл бұрын
("Read More" To View Revised Code) With this code, the blade is still technically active during the "debounce wait period" (when debounce = true) so to counteract that, i incorporated a double check for the damage code which turns off during debounce, and reactivates after debounce... i called it "Active" now it should only be active and deal damage for the initial swing and turn off right after so it is passive during the debounce wait period (P.S. I also added a secondary idle animation ("Function Idle")... it is unnecessary for basic functionality aside from having an idle animation, so do what you want with it) but anyways...here is the fully revised edition - tool = script.Parent debounce = nil Active = true function Attack() if debounce == nil then local anim = tool:WaitForChild("Knife Swing") local humanoid = script.Parent.Parent:WaitForChild("Humanoid") local animTrack = humanoid:LoadAnimation(anim) animTrack:Play(0) debounce = true wait(1.25) debounce = nil end end function Idle() if debounce == nil then local Idle = tool:WaitForChild("Idle") local humanoid = script.Parent.Parent:WaitForChild("Humanoid") local IdleTrack = humanoid:LoadAnimation(Idle) IdleTrack:Play(0) end end tool.Activated:Connect(Attack) tool.Equipped:Connect(Idle) tool.Handle.Blade.Touched:Connect(function(hit) local player = game.Players:GetPlayerFromCharacter(hit.Parent) if player and debounce and Active == true then player.Character:WaitForChild("Humanoid").Health -= 999 Active = nil wait(1.25) Active = true end end)
@rustysillyband
@rustysillyband Жыл бұрын
Yooo!!! Thanks for helping everyone out! Those are some really cool changes you made!
@JFDavoded
@JFDavoded Жыл бұрын
@@rustysillyband haha it's no problem, practically all the credit still goes to you, you helped me out (and many others) more than you could know
@Zawaito
@Zawaito Жыл бұрын
Bro this is a really good take!! And the idea for idle animation? Genius!!! Only thing i have to ask is: the active variable is only needed if the debounce is bigger then the animation itself, right? (A.k.a. endlag) Cause if debounce lasts as long as the animation then there's no problem
@x_zenyy
@x_zenyy Жыл бұрын
I use Moon Animator and Idk why but when I click once, the whole animation plays, and if I spam, it only plays the 1st part over and over..
@rustysillyband
@rustysillyband Жыл бұрын
Unfortunately, I do not know too much about Moon Animator. However, try adjusting your debounce time to fit your animation.
@Turtleinspace
@Turtleinspace Жыл бұрын
hey im probably late but how do i make a idle animation for this sword? appreciate it
@Lord_raichu6369
@Lord_raichu6369 Жыл бұрын
The way I do it is just game.Players.LocalPlayer.Character.Animate.idle.Animation1.AnimationId ="rbxassetid://Your Id Here" and make sure this is in a equipped function Btw if your using R6 put animation1 If your using R15 put animation2
@agentreaps249
@agentreaps249 Жыл бұрын
So i tried it but it wont do the animation and when its equipped its sideways. Any idea what i could do to fix it?
@LordDxrrow
@LordDxrrow Жыл бұрын
Hey, I passed the tutorial in roblox studio and I'm very happy, but there's one thing that annoys me: I can't see my sword moving when I launch it from roblox. I've checked the script several times, there is no error, not even in the animation. Please help me !
@rustysillyband
@rustysillyband Жыл бұрын
Are you making the game in a group? If so, you need to republish your animations and then change the creator of the animation to your group instead of you.
@Idumbledthedoor
@Idumbledthedoor Жыл бұрын
​@@rustysillybandhelp pls i did the animation correctly i checked the script 9 times its set to only owner to me what do i doo
@Ihavekidsinmybasememt
@Ihavekidsinmybasememt Жыл бұрын
@@Idumbledthedoor If u have multiple animations named the same thing that might be the issue
@VVRXTHH
@VVRXTHH Жыл бұрын
Can you make different animations for different swings like swing 1 swing 2 swing 3
@Notify_Bobo
@Notify_Bobo Жыл бұрын
I'm hardly good at scripting but i know you can do something similar to that with math.random
@Lord_raichu6369
@Lord_raichu6369 Жыл бұрын
​@@Notify_Bobomath.random is good but it isn't good if you want the animations to play in a certain order.
@firestorm147
@firestorm147 Жыл бұрын
is there any way to make it so a sound plays when you hit something? thanks btw i searched for like an hour for something that works and this one does
@rustysillyband
@rustysillyband Жыл бұрын
There is a way to make the sound play, I'd imagine you'd put the sound inside of workspace. Then, go ahead and find your animation, and put it in a variable. local sound = game.Workspace.Sound -- example variable, adjust to your own code Now, go ahead and play the animation when the sword's debounce is set to true. sound:Play() -- put this little code inside where the attack function is Thanks for watching! Let me know if this was what you were looking for.
@firestorm147
@firestorm147 Жыл бұрын
@@rustysillyband this works but the sound plays a bunch of times cancelling out the others and making it sound buggy, is there a way to fix this? (i already have a return command added)
@rustysillyband
@rustysillyband Жыл бұрын
@@firestorm147 Hmmm... I'm sorry that code didn't work. I'm not exactly sure what the issue is exactly, I'd need to test a bit, I'll let you know if I find the answer!
@rustysillyband
@rustysillyband Жыл бұрын
@@firestorm147 So after testing, I couldn't come up with a way to do it. I'm sorry, I could not be of assistance.
@wapaloooo
@wapaloooo Жыл бұрын
hey can I get help? when I equip the sword it's upside down
@rustysillyband
@rustysillyband Жыл бұрын
Try rotating the Handle 180 degrees.
@cnplays2585
@cnplays2585 Жыл бұрын
hey i got the sword but i culd not swing it with my animation ( i took the script from the comment)
@rustysillyband
@rustysillyband Жыл бұрын
That means there might be an error, to check, you can open up the View tab on the top, and then open up the output. Inside there, if there's any red lines, please send them here!
@IAmDoow
@IAmDoow Жыл бұрын
Can you meke it so it can take damage on npc and stuff?
@kaboomboi7445
@kaboomboi7445 Жыл бұрын
here you go: tool = script.Parent debounce = nil function Attack() if debounce == nil then local anim = tool:WaitForChild("Animation") local humanoid = script.Parent.Parent:WaitForChild("Humanoid") local animTrack = humanoid:LoadAnimation(anim) animTrack:Play(0) debounce = true wait(0.5) debounce = nil end end tool.Activated:Connect(Attack) tool.Handle.Blade.Touched:connect(function(hit) local humanoid = hit.Parent:FindFirstChild("Humanoid") if humanoid.Parent ~= tool.Parent and debounce == true then humanoid.Health -= 3 end end)
@3Dimensional2Dimensional
@3Dimensional2Dimensional Жыл бұрын
so uh cool tutorial and all but im pretty new to studio it doesn't let me scale things down that small, the smallest a part can get is a 1x1 stud block
@Lord_raichu6369
@Lord_raichu6369 Жыл бұрын
Just go to model and turn "Move" off
@3Dimensional2Dimensional
@3Dimensional2Dimensional Жыл бұрын
@@Lord_raichu6369 tysm
@Thomario20
@Thomario20 Жыл бұрын
I don't get it i made multiple animations and rewrote the script multiple time and i can't manage to play an animation when i swing my weapon (which is a bat) even with the script in the comments
@Thomario20
@Thomario20 Жыл бұрын
Nvm i just had some edits to make
@rustysillyband
@rustysillyband Жыл бұрын
Sorry to hear that! If you don't mind me asking, what changes did you have to make?
@Thomario20
@Thomario20 Жыл бұрын
@@rustysillyband well i saw that the scripts in the comments had some mistakes and when i noticed i pretty much just had to edit it to fix these errors
@rustysillyband
@rustysillyband Жыл бұрын
@@Thomario20 Oh.
@MrTophat6
@MrTophat6 Жыл бұрын
Hello, for me I can’t grab the sword, i think it’s because of the touch interest. How do I get touch interest?
@swagblue22
@swagblue22 8 ай бұрын
name it handle before putting it in tool
@grumpysourdough
@grumpysourdough 3 ай бұрын
Why does my sword animation still play but it does no damage? whats wrong with the script?
@Ascend.notTheRealOne
@Ascend.notTheRealOne Жыл бұрын
I don’t see part 1 and part 0 it’s not there
@9livesninja
@9livesninja Жыл бұрын
I followed the video, but it didn’t work. I will try some trouble shooting, but any tips? (The animation doesn’t play when I click the screen)
@rustysillyband
@rustysillyband Жыл бұрын
Did you make sure to set your animation priority to "Action"?
@9livesninja
@9livesninja Жыл бұрын
@@rustysillyband yes, I did. I just checked. Also, this is going to sound stupid but every frame is a key frame due to me not understanding how to animate, will this affect anything? Should I remake the animation? (I now know how to do it properly)
@rustysillyband
@rustysillyband Жыл бұрын
@@9livesninja I do not think that it will affect the animation at all. Are there any errors in the script that you can tell? You should be able to tell by running the game and going into the output.
@9livesninja
@9livesninja Жыл бұрын
@@rustysillyband ok! Found the problem. I only have about a third of the code. Guess I didn’t watch all the way through.
@rustysillyband
@rustysillyband Жыл бұрын
@@9livesninja Oh! Well, that explains it! Hope it goes well!
@jamesagawa7584
@jamesagawa7584 2 ай бұрын
why it doesnt work for me, even the loading animation
@LofiLinxs
@LofiLinxs Жыл бұрын
know why my sword is not swinging and instead running into everything the sword model touches?
@rustysillyband
@rustysillyband Жыл бұрын
Make sure your animation priority is Action, and that your sword is not anchored. You can also turn off CanCollide.
@vaxo-px7tx
@vaxo-px7tx Жыл бұрын
Hey i when i made it damage 3 it damaged a lot more i think it stacks the more players touches it so do you know how i make it damage only a certain amount of damage?
@Zawaito
@Zawaito Жыл бұрын
What the code does is: while debounce is on, the weapon deals damage on touch. So it is dealing damage regardles of whether or not it already dealt damage. So your sword is hitting more than one part... Like both arm and torso So a way to fix is to make a switch that only lets it deal 1 tick of damage per click. You can do it via variable, you can do it by disabling touch on hit, you can add i-frames after being hit to the player
@KapitänKrümel
@KapitänKrümel 5 ай бұрын
Hey!I am currently learning how to program a bit with roblox Studio, and i followed this tutorial step by step.How ever , i can't pick up the sword and i noticed,that i was missing something called "Touchinterest" in "Handle", and i think that this is the reason why i can't pick up the sword.Can anyone tell me how to get "Touchinterest"?
@KapitänKrümel
@KapitänKrümel 5 ай бұрын
Ok, nvm, i fixed it somehow BUT the sword faces the ground with its blade lol
@chinatownwoo
@chinatownwoo Жыл бұрын
I followed every step but, i dont spawn with my sword. i have to step on it first, i hold it weirdly and freeze in the air not being able to move with the sword equipped. please help what do i do?
@7Tony7Baloney7
@7Tony7Baloney7 Жыл бұрын
Put it in the StarterPack folder then you should spawn with the sword
@Mattcandostuff
@Mattcandostuff Жыл бұрын
Why is my sword horizontal instead of vertical and I cant load animation even though i followed steps
@rustysillyband
@rustysillyband Жыл бұрын
You can adjust the handle to where you need it to be with the decal strategy I shared. Also, make sure you're using your own animations and ids.
@dabuddyy
@dabuddyy 8 ай бұрын
Hey, how can I make it so that other players can see the animation? cuz the script only makes the animation visible to me
@kaifrankson4032
@kaifrankson4032 Жыл бұрын
Whenever I equip the sword it just falls from the sky in pieces please someone help
@rustysillyband
@rustysillyband Жыл бұрын
Make sure your sword is properly welded together and you have a piece named "Handle"
@urmom-l1y
@urmom-l1y 9 ай бұрын
technoblade if he continued with playing roblox
@Wvyzin
@Wvyzin Жыл бұрын
when i do this my sword just get stuck at one place and i cant get out of there
@rustysillyband
@rustysillyband Жыл бұрын
Make sure your sword has CanCollide disabled.
@Wvyzin
@Wvyzin Жыл бұрын
@@rustysillyband k ty
@Synt4x._
@Synt4x._ Жыл бұрын
everytime i equip i cant hold it in my hand for some reason pls help
@rustysillyband
@rustysillyband Жыл бұрын
Make sure your handle is called "Handle" with a capital H. It's very important that you do so.
@Synt4x._
@Synt4x._ Жыл бұрын
Thank u very much it worked now
@Morvion31
@Morvion31 4 ай бұрын
my sword hilding hand is not moving but my empty hand is moving
@Novorb
@Novorb Жыл бұрын
Why does it say that the handle isn’t a member of the tool?
@rustysillyband
@rustysillyband Жыл бұрын
You might need to use :WaitForChild("Handle") wherever your code is using your handle.
@Novorb
@Novorb Жыл бұрын
@@rustysillyband dang it, am too lazy to redo the code
@alexle5357
@alexle5357 6 ай бұрын
how do I attack without players? what's the code to do it?
@Ban33t
@Ban33t Жыл бұрын
Hey i need help, My tool dosent do damage everything else works except for the damage :( pls help me
@dupontflorian4954
@dupontflorian4954 Жыл бұрын
my sword dont stop the animation and it continue when i dont equip the tool please help
@rustysillyband
@rustysillyband Жыл бұрын
That means that you enabled looping on your animation. You need to turn that off.
@dupontflorian4954
@dupontflorian4954 Жыл бұрын
@@rustysillyband how i do that ?
@rustysillyband
@rustysillyband Жыл бұрын
@@dupontflorian4954 You need to reopen the animation editor, click on the original dummy you used for your animation, turn off looping on your animation, and then republish it to Roblox. Then swap the animation id with the other one.
@Runwin
@Runwin Жыл бұрын
Thanks! İt Worked Fine But İt Didnt Kill Anyone So I Added Kill Script To My Mesh And Worked Just Fine!
@KinteccaFN
@KinteccaFN 9 ай бұрын
script please
How to ANIMATE in Roblox Studio (EASY)
17:39
Rustysillyband
Рет қаралды 202 М.
Can you make a VR game in Scratch? (devlog #1)
10:00
STEM MC
Рет қаралды 134 М.
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН
Правильный подход к детям
00:18
Beatrise
Рет қаралды 11 МЛН
Making a Game About Weak Points
21:27
Emis
Рет қаралды 999 М.
How To Make A Sword In 15 Minutes | Blender
14:46
Kingkade 3D
Рет қаралды 57 М.
Making INSANE PROGRESS In ROBLOX STUDIO | Roblox Devlog #2
6:38
Can I 100% Superliminal and Get a Refund?
23:36
Gronf
Рет қаралды 357 М.
How to Make a Working Sword in Roblox Studio 2023!
8:58
DevMelon
Рет қаралды 82 М.
How To Make A Sword In 10 Minutes | Blender
10:49
Kingkade 3D
Рет қаралды 220 М.
TESTING MY NEW MODS! (Discord Trolling)
16:12
SoundDrout
Рет қаралды 1,8 МЛН
BEST GUIDE to animating on Roblox for free! [Beginner]
7:36
Pandastroyer
Рет қаралды 390 М.
I made a SURVIVAL GAME in Roblox...
8:08
Gamer M8
Рет қаралды 502 М.