How do I use priority in arrays, say I wanted something to be more likely to happen than something else could I weight it or would I have to do this:
Enemies = {"Bandits", "Bandits", "Bandits", "Bandits", "Bandits", "Bandits", "Bandits", "Bandits", "Bandits", "Advanced Bandits", "Advanced Bandits", "Advanced Bandits", "Outlaws", "Outlaws", "Outlaws", "Murderers", "Murderers", "Assassins"} while wait(0.5) do a = Enemies[math.random(1, 18)] print (a) end
So here there is a: (1/2)% chance of a Bandit
(1/6)% chance of an Advanced Bandit
(1/6)% chance of an Outlaw
(1/9)% chance of a Murderer
(1/18)% chance of an Assassin