Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make a chance system?

Asked by
Auxigin 47
4 years ago

I'm looking to make a chance system and I don't know how, please no confusing stuff...

0
This is not a request site, use math.random recanman 88 — 4y
0
math.random isn't reliable Hydrogyn 155 — 4y

2 answers

Log in to vote
0
Answered by
Hydrogyn 155
4 years ago

This developer forum might help. :)

https://devforum.roblox.com/t/loottable-a-module-for-your-random-loot-tables-loot-cases-and-more/533493

Ad
Log in to vote
0
Answered by 4 years ago

To make a chance system you can use a variable with math.random.

local chance = math.random(1,6) -- picks a random number between 1 and 6 (you can put any minimum and maximum numbers)

if number == 6 then -- if it picks a certain number
-- put your code here

Answer this question