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?
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
local strength = 3
basedamage = 2
local damage = basedamage*strength
Quite simple, change the variable values around as you wish.
It will just be punching whilst holding a punching tool. Will that script work for that?
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
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()