#Critical hit for sword combat system
1 messages · Page 1 of 1 (latest)
It heavily depends on how your sword system works
And what you define as a "critical hit"
He probably means like a 20% chance for a 1.5x damage boost or something like that
looks like this
i mean the critical hit like when u for example press r it does attack that does like 1.5% more dmg than basic m1
other words m2
😨
** You are now Level 23! **
So listen for the R key and then run your attack logic with a different damage value. What part of this are you having trouble with?
i was thinking about that but do i need to add like enum.keyc
You would need to check if the Input.Keycode == Enum.KeyCode.R, yes
i dont really know how to
Thats not how if statements work, please read the docs
https://create.roblox.com/docs/tutorials/fundamentals/coding-3/intro-to-if-statements
bro i did it but the animation looks goofy look 😭