I am newish to scripting and would love to know how to do this with math.random, for example, you have a chance at getting the Holy Blade from killing this mob.
You want to create a variable for math.random(). Then the function will choose a random number between the given 1st value and 2nd value. Then the variable will be equal to that selected number.
Chance = math.random(1, 10) if Chance == 1 then --Drop Holy Blade end
You can of course change the values and variable.
Or you can do:
if math.random(1, 10) == 1 then --Drop Holy Blade end