This Code isn't creating random numbers/outputs
local b1 = mob.B1
math.randomseed(tick())
p1 = math.random(1, 100)
if p1 <= b1.None.Value then
elseif p1 > b1.None.Value and p1 <= b1.Crude.Value then
print("Crude for b1")
elseif p1 > b1.Crude.Value and p1 <= b1.Rare.Value then
print("Rare for b1")
elseif p1 > b1.Rare.Value and p1 <= b1.Famed.Value then
print("Famed for b1")
elseif p1 > b1.Famed.Value and p1 <= b1.Legendary.Value then
print("Legendary for b1!")

2 comments
math.randomseed doesn't work in studio.
I think that depends on your operating system, Ruben. Discarding the first couple of generated values and using the subsequent ones seems to solve the problem.