players can have weapons damage up to 15
their attack damage can be changed by stats points when they reach level 15
there's also Defence that can be changed by stats points
What I'm trying to do
so I'm trying to make a random attack damage script, but as the title said, I am not good at math. and I don't want players being too Overpowered all the time, but it can happen sometimes.
i know i'm not supposed to ask for a script without trying, but the math part is the part that's bad for me

10 comments
http://wiki.roblox.com/index.php?title=Random_numbers
i know how to use random numbers. but that still doesnt help with the math part :(
Try to use a formula like x = math.random(5) damage = (x*5)-10 so even if it's 5 the max will be 15 though it limits the range of damage.
if i wanted to add the player's defense to that, would i divide it?
No, you'd subtract the defense from it before applying the damage to the humanoid.
damage can get up to 1000 or more if a lucky hit, and some NPCs wont have that much HP
Are you asking for a basic formula for weapons in general or multiple for specific weapons?
all weapons. sorry D: i never have been good at math. i tried to do a formula but i couldnt think of one
why is math.random alone not sufficient for this
Percil Ever played an RPG before. They use formulas for their attacks based on stats and the skill/attack the character is using.