Roblox Studio Tutorials - October 6, 2021

How to Make a Weapon that Damages


Buzzy Beth


Download – Weapon Model and Script

How To – Make a Weapon that Damages on Roblox Studio

What’s up everyone welcome to buzzygames, my name is BuzzyGamesBeth and today I’ll be teaching you how to make a weapon that does damage!

  • I’m gonna hop inside of my game, this is the tool that I have and I can’t really swing or hit the dummy with my weapon and I want to change that so the weapon does damage!
  • Alrighty so go ahead and go inside of your tool and if you haven’t watched our how to make a tool video go ahead and watch that first before continuing with this video.
  • Inside of our tool, we’re going to go ahead and add a script. Inside of the script make sure to delete the print statement.
  • So for our script of course we’re always going to define our variables right here.
  • We’re going to create an otouched function where if any time a humanoid is hit with the weapon then they’re going to take damage of five and then i’m going to go ahead and create a slash function that has like that slashing animation effect.
  • Then i’m gonna call my two functions!
  • Hop inside of our game and pick up your tool and you’ll see that anytime I click it has the little slash effect and it actually damages the dummy by five health!
  • The amount of damage the dummy can take or any humanoid can take is adjustable, just make sure to change the value of five to any value you want- either greater or lower!