How would I make players with more strength do more damage?

Hello. I have a simulator game, and I was wondering what is the best way to make it so that a player who is bigger with a higher strength number can do more damage to other players when punching?

2 Likes

strength could be a ‘delta’ value for any type of formula you want to use honestly.

super basic example.

local baseDamage = strength * 0.25

now their base damage will always be 25% of their strength level. (this will be the damage you use for punching etc)


then you can use that BaseDamage to do something like…

local toolDamage = baseDamage * weapon.Damage

this will make your damage change based on what weapon you have and still relies on your strength level.


again this is a super basic example, but im sure you get the point, the actual math just depends on how high you want your damage AND how many other damage types/factors there is


7 Likes

local strength = 3

basedamage = 2

local damage = basedamage*strength

Quite simple, change the variable values around as you wish.

1 Like

It will just be punching whilst holding a punching tool. Will that script work for that?

1 Like

Depends on the tool, you’d have to post the script for the tool if you need more help.
*Please use markdown when posting the script :slight_smile:

1 Like

yes the base damage should be good enough for punching

local strength = 10
local baseDamage = strength * 0.25

you can change the 0.25 to any percentage you want, and you’ll probably want to round to the nearest whole number using math.floor() or math.ceil()

2 Likes