Ledger Nano X - The secure hardware wallet
SHARE
TWEET

ktane simon says code

a guest Mar 29th, 2020 159 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. game.Lighting.TimeOfDay = 0
  2.  
  3. --values--
  4.  
  5. local debounce = false
  6. local serial = nil
  7. local random1 = math.random(1, 2)
  8. local length = math.random(3, 5)
  9. local color = {}
  10. local color1 = math.random(1, 4)
  11. local color2 = math.random(1, 4)
  12. local color3 = math.random(1, 4)
  13. local color4 = math.random(1, 4)
  14. local color5 = math.random(1, 4)
  15. table.insert(color, 1, color1)
  16. table.insert(color, 2, color2)
  17. table.insert(color, 3, color3)
  18. table.insert(color, 4, color4)
  19. table.insert(color, 5, color5)
  20. local blinklength = 1
  21. local currentclicks = 0
  22. if random1 == 1 then
  23.     serial = false
  24. else
  25.     serial = true
  26. end
  27. print("serial has vowel = " .. tostring(serial))
  28. print("generated sequence length: " .. length)
  29. local cheat = 0
  30.  
  31. --functions--
  32.  
  33. function fullblink()
  34.     blink1()
  35.     if blinklength > 1 then
  36.         blink2()
  37.     end
  38.     if blinklength > 2 then
  39.         blink3()
  40.     end
  41.     if blinklength > 3 then
  42.         blink4()
  43.     end
  44.     if blinklength > 4 then
  45.         blink5()
  46.     end
  47.     debounce = false
  48.     currentclicks = 0
  49. end
  50.  
  51. function blink1()
  52.     if color[1] == 1 then
  53.         game.Workspace.Red.Material = Enum.Material.Neon
  54.         wait(0.3)
  55.         game.Workspace.Red.Material = Enum.Material.SmoothPlastic
  56.         wait(0.3)
  57.     elseif color[1] == 2 then
  58.         game.Workspace.Blue.Material = Enum.Material.Neon
  59.         wait(0.3)
  60.         game.Workspace.Blue.Material = Enum.Material.SmoothPlastic
  61.         wait(0.3)
  62.     elseif color[1] == 3 then
  63.         game.Workspace.Yellow.Material = Enum.Material.Neon
  64.         wait(0.3)
  65.         game.Workspace.Yellow.Material = Enum.Material.SmoothPlastic
  66.         wait(0.3)
  67.     elseif color[1] == 4 then
  68.         game.Workspace.Green.Material = Enum.Material.Neon
  69.         wait(0.3)
  70.         game.Workspace.Green.Material = Enum.Material.SmoothPlastic
  71.         wait(0.3)
  72.     else
  73.         print("Error while displaying colors!")
  74.     end
  75. end
  76.  
  77. function blink2()
  78.     if color[2] == 1 then
  79.         game.Workspace.Red.Material = Enum.Material.Neon
  80.         wait(0.3)
  81.         game.Workspace.Red.Material = Enum.Material.SmoothPlastic
  82.         wait(0.3)
  83.     elseif color[2] == 2 then
  84.         game.Workspace.Blue.Material = Enum.Material.Neon
  85.         wait(0.3)
  86.         game.Workspace.Blue.Material = Enum.Material.SmoothPlastic
  87.         wait(0.3)
  88.     elseif color[2] == 3 then
  89.         game.Workspace.Yellow.Material = Enum.Material.Neon
  90.         wait(0.3)
  91.         game.Workspace.Yellow.Material = Enum.Material.SmoothPlastic
  92.         wait(0.3)
  93.     elseif color[2] == 4 then
  94.         game.Workspace.Green.Material = Enum.Material.Neon
  95.         wait(0.3)
  96.         game.Workspace.Green.Material = Enum.Material.SmoothPlastic
  97.         wait(0.3)
  98.     else
  99.         print("Error while displaying colors!")
  100.     end
  101. end
  102.  
  103. function blink3()
  104.     if color[3] == 1 then
  105.         game.Workspace.Red.Material = Enum.Material.Neon
  106.         wait(0.3)
  107.         game.Workspace.Red.Material = Enum.Material.SmoothPlastic
  108.         wait(0.3)
  109.     elseif color[3] == 2 then
  110.         game.Workspace.Blue.Material = Enum.Material.Neon
  111.         wait(0.3)
  112.         game.Workspace.Blue.Material = Enum.Material.SmoothPlastic
  113.         wait(0.3)
  114.     elseif color[3] == 3 then
  115.         game.Workspace.Yellow.Material = Enum.Material.Neon
  116.         wait(0.3)
  117.         game.Workspace.Yellow.Material = Enum.Material.SmoothPlastic
  118.         wait(0.3)
  119.     elseif color[3] == 4 then
  120.         game.Workspace.Green.Material = Enum.Material.Neon
  121.         wait(0.3)
  122.         game.Workspace.Green.Material = Enum.Material.SmoothPlastic
  123.         wait(0.3)
  124.     else
  125.         print("Error while displaying colors!")
  126.     end
  127. end
  128.  
  129. function blink4()
  130.     if color[4] == 1 then
  131.         game.Workspace.Red.Material = Enum.Material.Neon
  132.         wait(0.3)
  133.         game.Workspace.Red.Material = Enum.Material.SmoothPlastic
  134.         wait(0.3)
  135.     elseif color[4] == 2 then
  136.         game.Workspace.Blue.Material = Enum.Material.Neon
  137.         wait(0.3)
  138.         game.Workspace.Blue.Material = Enum.Material.SmoothPlastic
  139.         wait(0.3)
  140.     elseif color[4] == 3 then
  141.         game.Workspace.Yellow.Material = Enum.Material.Neon
  142.         wait(0.3)
  143.         game.Workspace.Yellow.Material = Enum.Material.SmoothPlastic
  144.         wait(0.3)
  145.     elseif color[4] == 4 then
  146.         game.Workspace.Green.Material = Enum.Material.Neon
  147.         wait(0.3)
  148.         game.Workspace.Green.Material = Enum.Material.SmoothPlastic
  149.         wait(0.3)
  150.     else
  151.         print("Error while displaying colors!")
  152.     end
  153. end
  154.  
  155. function blink5()
  156.     if color[5] == 1 then
  157.         game.Workspace.Red.Material = Enum.Material.Neon
  158.         wait(0.3)
  159.         game.Workspace.Red.Material = Enum.Material.SmoothPlastic
  160.         wait(0.3)
  161.     elseif color[5] == 2 then
  162.         game.Workspace.Blue.Material = Enum.Material.Neon
  163.         wait(0.3)
  164.         game.Workspace.Blue.Material = Enum.Material.SmoothPlastic
  165.         wait(0.3)
  166.     elseif color[5] == 3 then
  167.         game.Workspace.Yellow.Material = Enum.Material.Neon
  168.         wait(0.3)
  169.         game.Workspace.Yellow.Material = Enum.Material.SmoothPlastic
  170.         wait(0.3)
  171.     elseif color[5] == 4 then
  172.         game.Workspace.Green.Material = Enum.Material.Neon
  173.         wait(0.3)
  174.         game.Workspace.Green.Material = Enum.Material.SmoothPlastic
  175.         wait(0.3)
  176.     else
  177.         print("Error while displaying colors!")
  178.     end
  179. end
  180.  
  181. game.Workspace.Red.ClickDetector.MouseClick:Connect(function()
  182.     if currentclicks < blinklength and debounce == false then
  183.         currentclicks = currentclicks + 1
  184.         if serial == true then
  185.             if color[currentclicks] == 2 == false then
  186.                 game.Workspace.Red.Transparency = 1
  187.                 game.Workspace.Blue.Transparency = 1
  188.                 game.Workspace.Green.Transparency = 1
  189.                 game.Workspace.Yellow.Transparency = 1
  190.                 print("incorrect click")
  191.             elseif currentclicks == blinklength then
  192.                 debounce = true
  193.             end
  194.         else
  195.             if color[currentclicks] == 3 == false then
  196.                 game.Workspace.Red.Transparency = 1
  197.                 game.Workspace.Blue.Transparency = 1
  198.                 game.Workspace.Green.Transparency = 1
  199.                 game.Workspace.Yellow.Transparency = 1
  200.                 print("incorrect click")
  201.             elseif currentclicks == blinklength then
  202.                 debounce = true
  203.             end
  204.         end
  205.         game.Workspace.Red.Material = Enum.Material.Neon
  206.         wait(0.3)
  207.         game.Workspace.Red.Material = Enum.Material.SmoothPlastic
  208.         if debounce == true then
  209.             if blinklength == length == false then
  210.                 wait(1.4)
  211.                 blinklength = blinklength + 1
  212.                 fullblink()
  213.             else
  214.                 wait(0.3)
  215.                 game.Workspace.Red.Material = Enum.Material.Neon
  216.                 game.Workspace.Blue.Material = Enum.Material.Neon
  217.                 game.Workspace.Green.Material = Enum.Material.Neon
  218.                 game.Workspace.Yellow.Material = Enum.Material.Neon
  219.             end
  220.         end
  221.     end
  222. end)
  223.  
  224. game.Workspace.Blue.ClickDetector.MouseClick:Connect(function()
  225.     if currentclicks < blinklength and debounce == false then
  226.         currentclicks = currentclicks + 1
  227.         if serial == true then
  228.             if color[currentclicks] == 1 == false then
  229.                 game.Workspace.Red.Transparency = 1
  230.                 game.Workspace.Blue.Transparency = 1
  231.                 game.Workspace.Green.Transparency = 1
  232.                 game.Workspace.Yellow.Transparency = 1
  233.                 print("incorrect click")
  234.             elseif currentclicks == blinklength then
  235.                 debounce = true
  236.             end
  237.         else
  238.             if color[currentclicks] == 1 == false then
  239.                 game.Workspace.Red.Transparency = 1
  240.                 game.Workspace.Blue.Transparency = 1
  241.                 game.Workspace.Green.Transparency = 1
  242.                 game.Workspace.Yellow.Transparency = 1
  243.                 print("incorrect click")
  244.             elseif currentclicks == blinklength then
  245.                 debounce = true
  246.             end
  247.         end
  248.         game.Workspace.Blue.Material = Enum.Material.Neon
  249.         wait(0.3)
  250.         game.Workspace.Blue.Material = Enum.Material.SmoothPlastic
  251.         if debounce == true then
  252.             if blinklength == length == false then
  253.                 wait(1.4)
  254.                 blinklength = blinklength + 1
  255.                 fullblink()
  256.             else
  257.                 wait(0.3)
  258.                 game.Workspace.Red.Material = Enum.Material.Neon
  259.                 game.Workspace.Blue.Material = Enum.Material.Neon
  260.                 game.Workspace.Green.Material = Enum.Material.Neon
  261.                 game.Workspace.Yellow.Material = Enum.Material.Neon
  262.             end
  263.         end
  264.     end
  265. end)
  266.  
  267. game.Workspace.Yellow.ClickDetector.MouseClick:Connect(function()
  268.     if currentclicks < blinklength and debounce == false then
  269.         currentclicks = currentclicks + 1
  270.         if serial == true then
  271.             if color[currentclicks] == 4 == false then
  272.                 game.Workspace.Red.Transparency = 1
  273.                 game.Workspace.Blue.Transparency = 1
  274.                 game.Workspace.Green.Transparency = 1
  275.                 game.Workspace.Yellow.Transparency = 1
  276.                 print("incorrect click")
  277.             elseif currentclicks == blinklength then
  278.                 debounce = true
  279.             end
  280.         else
  281.             if color[currentclicks] == 2 == false then
  282.                 game.Workspace.Red.Transparency = 1
  283.                 game.Workspace.Blue.Transparency = 1
  284.                 game.Workspace.Green.Transparency = 1
  285.                 game.Workspace.Yellow.Transparency = 1
  286.                 print("incorrect click")
  287.             elseif currentclicks == blinklength then
  288.                 debounce = true
  289.             end
  290.         end
  291.         game.Workspace.Yellow.Material = Enum.Material.Neon
  292.         wait(0.3)
  293.         game.Workspace.Yellow.Material = Enum.Material.SmoothPlastic
  294.         if debounce == true then
  295.             if blinklength == length == false then
  296.                 wait(1.4)
  297.                 blinklength = blinklength + 1
  298.                 fullblink()
  299.             else
  300.                 wait(0.3)
  301.                 game.Workspace.Red.Material = Enum.Material.Neon
  302.                 game.Workspace.Blue.Material = Enum.Material.Neon
  303.                 game.Workspace.Green.Material = Enum.Material.Neon
  304.                 game.Workspace.Yellow.Material = Enum.Material.Neon
  305.             end
  306.         end
  307.     end
  308. end)
  309.  
  310. game.Workspace.Green.ClickDetector.MouseClick:Connect(function()
  311.     if currentclicks < blinklength and debounce == false then
  312.         currentclicks = currentclicks + 1
  313.         if serial == true then
  314.             if color[currentclicks] == 3 == false then
  315.                 game.Workspace.Red.Transparency = 1
  316.                 game.Workspace.Blue.Transparency = 1
  317.                 game.Workspace.Green.Transparency = 1
  318.                 game.Workspace.Yellow.Transparency = 1
  319.                 print("incorrect click")
  320.             elseif currentclicks == blinklength then
  321.                 debounce = true
  322.             end
  323.         else
  324.             if color[currentclicks] == 4 == false then
  325.                 game.Workspace.Red.Transparency = 1
  326.                 game.Workspace.Blue.Transparency = 1
  327.                 game.Workspace.Green.Transparency = 1
  328.                 game.Workspace.Yellow.Transparency = 1
  329.                 print("incorrect click")
  330.             elseif currentclicks == blinklength then
  331.                 debounce = true
  332.             end
  333.         end
  334.         game.Workspace.Green.Material = Enum.Material.Neon
  335.         wait(0.3)
  336.         game.Workspace.Green.Material = Enum.Material.SmoothPlastic
  337.         if debounce == true then
  338.             if blinklength == length == false then
  339.                 wait(1.4)
  340.                 blinklength = blinklength + 1
  341.                 fullblink()
  342.             else
  343.                 wait(0.3)
  344.                 game.Workspace.Red.Material = Enum.Material.Neon
  345.                 game.Workspace.Blue.Material = Enum.Material.Neon
  346.                 game.Workspace.Green.Material = Enum.Material.Neon
  347.                 game.Workspace.Yellow.Material = Enum.Material.Neon
  348.             end
  349.         end
  350.     end
  351. end)
  352.  
  353. --script--
  354.  
  355. while wait() do
  356.     if debounce == false then
  357.         debounce = true
  358.         fullblink()
  359.         debounce = false
  360.         wait(4)
  361.     else
  362.         repeat wait() until debounce == false
  363.         wait(4)
  364.     end
  365. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top