Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How can I replicate this ability from battle cats?

Hello!

I wanted to replicate this ability from the mobile game: "Battle Cats". Anyway, there Is an ability for metal enemies, there HP Is how much times they need to be hit

(An example: If a metal enemy has 20 HP, the player must hit them 20 times before dying)

However, when It meets a critical hit, It will Ignore the metal enemy's ability and damage the enemy

1 answer

✓ Accepted answer

Make a boolvalue that if true it is metal and the weapon only inflicts one damage on it. If you want to replicate a crit, make another boolvalue and make the weapon have a random chance of turning it to true. Whenever its true the normal damage is given.

This discussion is preserved as it was. New answers, comments, and votes are closed.