Scenario
Alright, so let’s say BobGaming2000 joins a game. He starts off with a sword that deals 53 damage. Eventually, BobGaming2000 finds a “Strength+” potion that will increase his sword’s damage by 25%. Of course, BobGaming2000 drinks the potion and his sword’s damage is increased by 25%.
Well, actually… it isn’t, because the developer didn’t know how to increase the damage properly because he sucked at math. How would the developer go about fixing his script?
Code
local SwordDamage = 53
local DamageIncrease = 25
SwordDamage += DamageIncrease