-- made by 234 on rscripts -- do wtvr you want with this script -- it only took me like 2hrs to figure out idrc -- execute when the board is full of letters for best result local http = game:GetService("HttpService") a = "" for _, tile in pairs(game.Players.LocalPlayer.PlayerGui:FindFirstChild("PiecesFrame", true):GetChildren()) do if tile:IsA("GuiObject") then a = a .. tile:GetAttribute("Letter") end end local data = { ["letters"] = a, ["size"] = 4 } local response = request({ Url = "https://gamepigeon.pythonanywhere.com/wordhunt", Method = "POST", Headers = { ["Content-Type"] = "application/json", }, Body = http:JSONEncode(data) }) local jsonString = response.Body local data = http:JSONDecode(jsonString) local answers = data.answer for _, entry in ipairs(answers) do local tbl = {} local numbers = entry[2] for _, value in numbers do if value == 0 then table.insert(tbl, { row = 4; col = 4; }) elseif value == 1 then table.insert(tbl, { row = 4; col = 3; }) elseif value == 2 then table.insert(tbl, { row = 4; col = 2; }) elseif value == 3 then table.insert(tbl, { row = 4; col = 1; }) elseif value == 4 then table.insert(tbl, { row = 3; col = 4; }) elseif value == 5 then table.insert(tbl, { row = 3; col = 3; }) elseif value == 6 then table.insert(tbl, { row = 3; col = 2; }) elseif value == 7 then table.insert(tbl, { row = 3; col = 1; }) elseif value == 8 then table.insert(tbl, { row = 2; col = 4; }) elseif value == 9 then table.insert(tbl, { row = 2; col = 3; }) elseif value == 10 then table.insert(tbl, { row = 2; col = 2; }) elseif value == 11 then table.insert(tbl, { row = 2; col = 1; }) elseif value == 12 then table.insert(tbl, { row = 1; col = 4; }) elseif value == 13 then table.insert(tbl, { row = 1; col = 3; }) elseif value == 14 then table.insert(tbl, { row = 1; col = 2; }) elseif value == 15 then table.insert(tbl, { row = 1; col = 1; }) end game:GetService("ReplicatedStorage").GameRemotes.SubmitWord:FireServer(tbl) end end