of     1   

obedientyankees96
#53935711Tuesday, August 30, 2011 7:55 PM GMT

What is wrong? The output prints everything up to the first "False", then it doesn't do anything esle. wordbank = [[ Lots and lots of words here... ]] math.randomseed(tick()) word = {} function explode(txt) length = string.len(txt) print(length) for i = 1,length do let = string.sub(txt,i,i) table.insert(word, let) print(let) end end function unScramble() chkused = false found = false wait(.1) newstr = "" guesses = {} used = {} for i = 1,#word do num = math.random(1,#word) print(num) for i = 1, #used do if used[i] == word[num] then chkused = true end end if used == false then print("False") newstr = newstr..word[num] end end for i = 1,#guesses do if guesses[i] == newstr then found = true print("true") end end if found == false then print("False") look = string.find(wordbank,newstr) print(newstr) if look then pos = string.sub(newstr, look) print(pos) else explode("test") unScramble() end end end explode("test") unScramble() ~~Check it out - http://www.roblox.com/Create-A-Story-V-1-BETA-item?id=34866023~~
BunnyBoy26
#53936035Tuesday, August 30, 2011 8:01 PM GMT

isn't guesses empty?
obedientyankees96
#53936282Tuesday, August 30, 2011 8:06 PM GMT

Yes, but, since it is empty and can't possibly find the word, it shouldn't change found to true ~~Check it out - http://www.roblox.com/Create-A-Story-V-1-BETA-item?id=34866023~~
obedientyankees96
#53947323Tuesday, August 30, 2011 10:33 PM GMT

obedientyankees96
#53965822Wednesday, August 31, 2011 2:42 AM GMT

kingkiller1000
#53966039Wednesday, August 31, 2011 2:47 AM GMT

You're being to vague. Explain more of what your script is supposed to do.
obedientyankees96
#53967350Wednesday, August 31, 2011 3:12 AM GMT

Vague? Its a word unscrambler.. What more do you need? It takes a word, in this case "test", explodes it into a table with each letter, then makes random combinations of those letters and checks if it is in the word bank. ~~Check it out - http://www.roblox.com/Create-A-Story-V-1-BETA-item?id=34866023~~
elucidir
#53967474Wednesday, August 31, 2011 3:14 AM GMT

Anagram solver.
obedientyankees96
#53976769Wednesday, August 31, 2011 12:21 PM GMT

obedientyankees96
#53989948Wednesday, August 31, 2011 7:16 PM GMT

Bump if used == false then print("False") newstr = newstr..word[num] end I think this is where it gets messed up.. It doesn't print "False" even though it should. ~~Check it out - http://www.roblox.com/Create-A-Story-V-1-BETA-item?id=34866023~~
kingkiller1000
#53992873Wednesday, August 31, 2011 8:08 PM GMT

Put this before "if used == false then": print(tostring(used)) and give me the result.
obedientyankees96
#53993579Wednesday, August 31, 2011 8:20 PM GMT

4 t e s t 1 table: 1F7D9958 2 table: 1F7D9958 1 table: 1F7D9958 2 table: 1F7D9958 False That's everything the script prints ~~Check it out - http://www.roblox.com/Create-A-Story-V-1-BETA-item?id=34866023~~
obedientyankees96
#54005872Wednesday, August 31, 2011 11:09 PM GMT

obedientyankees96
#54063032Thursday, September 01, 2011 11:37 PM GMT

Can anyone please help?.. ~~Check it out - http://www.roblox.com/Create-A-Story-V-1-BETA-item?id=34866023~~
kingkiller1000
#54063297Thursday, September 01, 2011 11:40 PM GMT

Are you trying to scramble the letters in a word, or the words in the sentence?
obedientyankees96
#54063552Thursday, September 01, 2011 11:44 PM GMT

Letters. In the end, you will get a text box, input a word, and it unscrambles it and gives you all the words it found.
kingkiller1000
#54063781Thursday, September 01, 2011 11:47 PM GMT

OH, I think I get it now. Do you mind if I rewrite that for you? If so, can I ask what all the words in that string at the top are separated by?
obedientyankees96
#54076229Friday, September 02, 2011 2:51 AM GMT

They aren't seperated by anything.. Heres an example: aardvark abaci aback abacus I would put it in a table, but the list I downloaded has 25000+ words.. Haha

    of     1