You can set a local variable to round(random(1,100)) and then have conditions, if variable = 1, spawn object A, else spawn object B. Or if it was 10%, if variable is between 1 and 10 then spawn object A etc
so, i just did that, when the button is pressed, set woodchance to random(1,100) set dirtchance to random(1,100) set gravelchance to random(1,100), etc etc, and if woodchance = to < or = to 5 (the chance) give 1 wood, but it gives a random number to everyone like this time it gave evertig 41 and wood 315, how do i fix that (theres no question mark because when i press alt and w two warning appears)
update: i just checked and if you dont click the button you keep getting one of everything non stop
update 2: fixed, it was a silly error, thanks!