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

How do i detect which armor value needs to be called?

I am currently making an rpg, but i ran into a problem. The problem is finding which player armor is to be called when hit. The way the armor system works is (mobdps - armor = total mobdps). But i can't figure out how to have it check for the player that is hit and that players armor value.

4 comments

0

Is the armor going to add HP or decrease enemy damage?

0

why is that question nessecary?

0

You would have some NumberValues object inside the character being set there each time he joins that indicate the value for everything, health, armor, attack, stamina and whatever you want, and you would use those in your scripts for all caculations

0

It decreases enemy damage to that player. Star, can you explain how the mob could tell which character its pulling them values from if i set it up that way? Thanks.

1 answer

Figured it out, all you have to do is put the values in starter pack. after that have the ontouch navigate to the value.

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