M1's not working

Hello I am a beginner coder and recently started on a project to make a game. I was using a scripting tutorial (How to make your first Combat System R15 and R6 | Part 1 - YouTube) and copied everything almost exactly, but when i try to play the game I get an error stating that there is an error. here is a video of the problem. (M1's not working - YouTube). Does anyone know what’s wrong?

Honestly you probably did something stupid like Local instead of local.
Happens to me all the time

-(im not calling you stupid)

whats the error???

ServerScriptService.CombatServer.Combat_Handler:19: attempt to index nil with ‘AnimationId’

Can I see your code? Almost exactly means you edited a bit or did something with it so I need to see it.

no sorry I mean almost exactly as in I changed animations that’s all

The error means that an animation doesn’t exist in the game, and you are trying to find a property called AnimationId inside the thing that doesn’t exist (it’s called nil)

What should I do to fix it? I made this script once before but it got corrupted so I had to redo it.

Only thing I can tell you to do is look at the script and change it according to your animations, I can’t see your code and explorer so idk what to do

I made a video of it is that enough?

If you are gonna create a game with minimal scripting knowledge, you’re wasting your time.

You need to have some advanced level of knowledges in order to develop a game as you will encounter a lot of bugs and a lot of fixes that required your scripting knowledge.

Yes it’s not supposed to be a great game. I am trying to learn and am note expecting everything to work fist try, which is why I am on here.

Making a gun requires advanced knowledge. You need to have all the basics first and a little bit of advanced knowledge to make it.

1 Like

Im making Melee combat not a gun.