Simple scripting math question

I found this line of code, and i’m wondering how the math worked.

		leaderstats.TrainingEXP.Value = leaderstats.TrainingEXP.Value * .80

Would this line of code just remove 20% of the training exp?

Yes. That line of code would just remove 20% of the training exp because .8 * 1 = .8 and it is 20% less than 1. (1 would be equal to the full amount of training exp)

1 Like