Jump to content
  • 0

How to Make Script Encrypt


cumasukacit

Question

2 answers to this question

Recommended Posts

while true do
local sel = gg.prompt({"Select file:"}, {gg.getFile()}, {"file"})
if not sel then break
else
local file = loadfile(sel[1])
if file ~= nil then
local out = sel[1] .. ".bin"
local test = io.open(out, "w")
test:write(string.dump(file, true))
test:close()
gg.alert("Success!\nFile saved: "..out)
break
else
gg.alert("Cannot load file!")
end
end
end

You can improve it by yourself

Link to comment
Share on other sites

On 4/25/2019 at 3:45 AM, maulz said:

while true do
local sel = gg.prompt({"Select file:"}, {gg.getFile()}, {"file"})
if not sel then break
else
local file = loadfile(sel[1])
if file ~= nil then
local out = sel[1] .. ".bin"
local test = io.open(out, "w")
test:write(string.dump(file, true))
test:close()
gg.alert("Success!\nFile saved: "..out)
break
else
gg.alert("Cannot load file!")
end
end
end

You can improve it by yourself

it works, thank you 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.