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
#Weighted RNG system
1 messages · Page 1 of 1 (latest)
u claim to know only the basics of scripting and u are using module scripts
?
show ur server script
mb
sure
this is the system to spawn blocks
made it so blocks spawn in client, different cube for each person
intermediate i guess, i haven't scripted ina while
** You are now Level 1! **
ill look into it
You find anything?
So, i would do this by having a weight multi aswell, that could be like 0 for common pets and 1 for the rarest pets.
Then in the rng do:
weight/(weightMulti * luckMulti) which would give you the final weight of the item.
Then just execute the rng function using that weight instead
These scripts look nice! Gj
Thanks
I’ll try it out
Np
how would u implement that into the rng system module script? when u say "weight" im guessing in terms of my script it would be block.Rarity?
Exactly
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