uyoyalt
|
  |
| Joined: 16 Apr 2013 |
| Total Posts: 2860 |
|
|
| 05 Jun 2014 06:44 AM |
Not so good, but yeah you can generate random words here
function message(text, time) local m = Instance.new("Message", workspace) m.Text = text wait(time) m:destroy() end
function GenerateUniqueCode() letters = {"a","c","q","r","s","t","o","z","m","h","w","b","e"} numbers = {1,2,3,4,5}
math.random(tick())
f1,f2,f3,f4,f5 = letters[math.random(1,#letters)], letters[math.random(1,#letters)], letters[math.random(1,#letters)], letters[math.random(1,#letters)], letters[math.random(1,#letters)]; big = math.random(1, 5) big2 = math.random(1, 5) big3 = math.random(1, 5) if big == 1 then f1 = string.upper(f1) elseif big == 2 then f2 = string.upper(f2) elseif big == 3 then f3 = string.upper(f3) elseif big == 4 then f4 = string.upper(f4) elseif big == 5 then f5 = string.upper(f5) end if big2 == 1 then f1 = string.upper(f1) elseif big2 == 2 then f2 = string.upper(f2) elseif big2 == 3 then f3 = string.upper(f3) elseif big2 == 4 then f4 = string.upper(f4) elseif big2 == 5 then f5 = string.upper(f5) end if big3 == 1 then f1 = string.upper(f1) elseif big3 == 2 then f2 = string.upper(f2) elseif big3 == 3 then f3 = string.upper(f3) elseif big3 == 4 then f4 = string.upper(f4) elseif big3 == 5 then f5 = string.upper(f5) end message("The raiders have successfully won, your unique code is: "..f1.. (numbers[math.random(1,#numbers)])..f2..f3..f4..f5.. (numbers[math.random(1,#numbers)]), 5) end
GenerateUniqueCode() |
|
|
| Report Abuse |
|
|
| |
|
uyoyalt
|
  |
| Joined: 16 Apr 2013 |
| Total Posts: 2860 |
|
| |
|
uyoyalt
|
  |
| Joined: 16 Apr 2013 |
| Total Posts: 2860 |
|
| |
|
uyoyalt
|
  |
| Joined: 16 Apr 2013 |
| Total Posts: 2860 |
|
| |
|
uyoyalt
|
  |
| Joined: 16 Apr 2013 |
| Total Posts: 2860 |
|
| |
|
dracomanx
|
  |
| Joined: 23 May 2013 |
| Total Posts: 15642 |
|
|
| 05 Jun 2014 07:21 AM |
its going to mess you id up, dont use it
OP is dirty |
|
|
| Report Abuse |
|
|
Unclear
|
  |
| Joined: 27 Aug 2011 |
| Total Posts: 17060 |
|
|
| 05 Jun 2014 07:21 AM |
| Or you could just tostring tick and turn certain substrings into chars. |
|
|
| Report Abuse |
|
|
l6v
|
  |
| Joined: 01 Jun 2014 |
| Total Posts: 364 |
|
|
| 05 Jun 2014 07:22 AM |
wow that's a lot of unneeded string
if i had access to yia still i'd pull up my raid code script |
|
|
| Report Abuse |
|
|
dracomanx
|
  |
| Joined: 23 May 2013 |
| Total Posts: 15642 |
|
| |
|
uyoyalt
|
  |
| Joined: 16 Apr 2013 |
| Total Posts: 2860 |
|
| |
|
Skyman772
|
  |
| Joined: 20 Mar 2012 |
| Total Posts: 9305 |
|
|
| 05 Jun 2014 07:24 AM |
it's a good start but otherwise inefficient
7.5/10
good effort |
|
|
| Report Abuse |
|
|
uyoyalt
|
  |
| Joined: 16 Apr 2013 |
| Total Posts: 2860 |
|
| |
|
uyoyalt
|
  |
| Joined: 16 Apr 2013 |
| Total Posts: 2860 |
|
| |
|
uyoyalt
|
  |
| Joined: 16 Apr 2013 |
| Total Posts: 2860 |
|
| |
|
uyoyalt
|
  |
| Joined: 16 Apr 2013 |
| Total Posts: 2860 |
|
| |
|
Codite
|
  |
| Joined: 13 May 2012 |
| Total Posts: 7760 |
|
| |
|
uyoyalt
|
  |
| Joined: 16 Apr 2013 |
| Total Posts: 2860 |
|
| |
|
uyoyalt
|
  |
| Joined: 16 Apr 2013 |
| Total Posts: 2860 |
|
| |
|
uyoyalt
|
  |
| Joined: 16 Apr 2013 |
| Total Posts: 2860 |
|
| |
|
uyoyalt
|
  |
| Joined: 16 Apr 2013 |
| Total Posts: 2860 |
|
| |
|
uyoyalt
|
  |
| Joined: 16 Apr 2013 |
| Total Posts: 2860 |
|
| |
|
uyoyalt
|
  |
| Joined: 16 Apr 2013 |
| Total Posts: 2860 |
|
| |
|
uyoyalt
|
  |
| Joined: 16 Apr 2013 |
| Total Posts: 2860 |
|
| |
|
| |
|