|
| 14 Dec 2013 09:27 PM |
What's the best way to convert ANY script loadstring? Like encrypting with loadstring |
|
|
| Report Abuse |
|
|
| |
|
|
| 14 Dec 2013 09:44 PM |
| There's probably a website somewhere on the internet. Google 'Lua loadstring encryption' or something |
|
|
| Report Abuse |
|
|
|
| 14 Dec 2013 09:45 PM |
| Why do you feel the need to hide your script to begin with? |
|
|
| Report Abuse |
|
|
|
| 14 Dec 2013 09:48 PM |
^^^
He probably feels the need because people suck. |
|
|
| Report Abuse |
|
|
|
| 14 Dec 2013 09:55 PM |
Ok, so you can convert your script to a string bytecode by using string.dump()
function f() print "hello, world" end s = string.dump(f) loadstring(s)() |
|
|
| Report Abuse |
|
|
|
| 14 Dec 2013 09:59 PM |
As a warning: I've heard rumors that loadstring will be removed sometime in the future.
Wiki Profile: http://wiki.roblox.com/index.php/User:Nelson |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 14 Dec 2013 10:05 PM |
| ^ But there will be a new replacement (load?) |
|
|
| Report Abuse |
|
|
|
| 14 Dec 2013 10:07 PM |
That's what I was forgetting, they're going to have a replacement for it... never mind!
Wiki Profile: http://wiki.roblox.com/index.php/User:Nelson |
|
|
| Report Abuse |
|
|
|
| 14 Dec 2013 10:07 PM |
| I don't believe you can use the output from string.dump to run your code through loadstring anymore. |
|
|
| Report Abuse |
|
|
|
| 14 Dec 2013 10:10 PM |
And removing loadstring would be stupid, especially if they're going to replace it with something. I mean, loadstring is part of the core Lua language, so I don't see why they would replace it with a different identifier.
Do you have a link to this info? I'm curious to know why they're replacing it with something different, since the word "replace" involves something else with identical functionality. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 14 Dec 2013 10:11 PM |
| It's already removed in the next version of Lua, and I think it will be combined with the load function (not entirely sure) |
|
|
| Report Abuse |
|
|
|
| 14 Dec 2013 10:13 PM |
| Ah, I was under the impression that the Roblox devs were removing loadstring from the environment. Didn't think Lua devs were messing with it. |
|
|
| Report Abuse |
|
|
|
| 14 Dec 2013 10:14 PM |
The first word of it I heard was quite a while ago, and on the standard forums. The second time was on the rbxdev forums. I'll try to find the rbxdev one, give me a second.
Wiki Profile: http://wiki.roblox.com/index.php/User:Nelson |
|
|
| Report Abuse |
|
|
|
| 14 Dec 2013 10:17 PM |
Sorry, but I can't find it. If I ever come across it again someday I'll post it here.
Wiki Profile: http://wiki.roblox.com/index.php/User:Nelson |
|
|
| Report Abuse |
|
|
| |
|