What do I need to learn to make a combat system (like yakuza)

I’m trying to make a beat em up type of game but I want to try to make it with a custom combat system

(no toolbox tutorials)

what are the necessary things I need to know to achieve this?

12 Likes
  • Tool.Equipped and Tool.Unequipped events
  • Debounce for cooldown
  • game.Players.LocalPlayer:GetMouse()
  • plrCharacter.Humanoid.Health
  • Humanoid Tags if you’re making a kill & deaths system. Its pretty much a string value that temporarily stays in a player’s humanoid when it gets hit by an enemy, and the string value is the enemy’s username. You can use DebrisService to automatically schedule deletion of it (optional). If the player dies, then the player will gain 1 deah and the enemy that will get retrieved via the player humanoid’s tag.
7 Likes

These are really broad and give the user no real help towards what they need to know to achieve a combat system.

To ACTUALLY make a combat system, you’d probably need a bit of knowledge on the following topics. I’ve provided a link for you to follow through to, in case you want to learn about it.

Now, a simple pipeline of how an attack would go through would be something like so:
1 - The player presses the E key and is picked up by the ContextActionService
2 - The ContextActionService fires a Remote
3 - Something on the server picks this request up and checks if it’s a real request
4 - The server see’s if the player can attack
5 - A ray/ multiple rays is/ are fired from the attack
6 - If the ray(s) hit anything, damage plus any other side affects are applied

34 Likes

Go easy on him, he’s probably never made a combat system so we’re gonna start off simple.

The only part where i would agree is using RayCasting for hit detection.

The only “advanced” thing in that list that I’ve provided him is module scripts and the paradigms associated with them. If the user doesn’t understand everything in that list then it’s okay because eventually they will, to where they can use it effectively. Providing a list of obvious and blatant resources just babies them and doesn’t help them to learn and grow as a developer.

These are pretty helpful, thank you

It seems a bit confusing but I’m sure I’ll get it with a bit of studying

When people first start out coding, everything is going to seem advanced to them. None of what you listed may seem advanced to you or anyone who’s been coding for awhile, however for someone just starting out, the list you provided and how you should go about incorporating these things into their code does seem intimidating.

There’s a big difference between something looking intimidating and being intimidating. Nothing on that list apart from, as I said, the paradigms, requires too much thought. Rays shoot a line from an origin to a direction. The ContextActionService picks up inputs and runs functions. The client to server model is something he will be required to know for a task like this, so no explanation needed there.

The user asked for a Yakuza-like combat system, which I then told them how to do it with a list of instructions and multiple sources. I believe a truthful and helpful response is better than one which seems easy yet has nothing to it, as this topic isn’t “easy” and can’t be dumbed down to as such.

7 Likes