Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- code breaker script (hopefully this works)
- -- this is probably inefficient, but idc
- -- EmeraldSlash, 3/3/16
- local passwordLength = 4 -- how long the code is that you're trying to crack
- local passHasToBePasswordLength = true -- if false, the script simply adds 1 until it is code (E.G 1,2,3,4, this does not support things like 0001), if true, it has to be the length of passwordLength (E.G 1000,1001,1002)
- function checkCode(code)
- if codeWorks then -- code in here for seeing if code works, E.G, 'if script.PassWord.Value == code then' (code is a string value)
- return true
- else
- return false
- end
- end
- if passHasToBePasswordLength == true then
- local code = ""
- for i = 1,passwordLength do
- if i < 10 then
- code = "000" ..i
- elseif i < 100 then
- code = "00" ..i
- elseif i < 1000 then -- add more of these if your password length is bigger than 4
- code = "0" ..i
- end
- if checkCode(code) == true then
- print("Found code! It was '" ..code.. "'")
- break
- end
- end
- else
- local code = ""
- for i = 1,passwordLength do
- if checkCode(code) == true then
- print("Found code! It was '" ..code.. "'")
- break
- end
- end
- end
Add Comment
Please, Sign In to add comment