#Weighted RNG system

1 messages · Page 1 of 1 (latest)

strange stump
#

only really know the basics of scripting, so im using a basic weighted rng system for a little project im making, basically i need helping adding a "luck boost" to this rng system. i have a 10x luck button and if its toggled on you gain 10x luck boost when clicking the blocks but idk how to implement that

quick acorn
#

?

#

show ur server script

strange stump
#

made it so blocks spawn in client, different cube for each person

strange stump
soft needleBOT
#

studio** You are now Level 1! **studio

quick acorn
#

ill look into it

strange stump
cobalt imp
cobalt imp
strange stump
cobalt imp
#

Np

strange stump
strange stump
#

but how would u add the weightmulti into the script? been trying different things cant seem to figure out how to get luck boost to work

cobalt imp
#

Then just as you have a block.Rarity you would have something called block.RarityWeightMulti or something (i’m bad at naming)

#

Also, don’t set it to 0 as it would always result in x/0 = infinity which we don’t want