Bulwarks
|
  |
| Joined: 26 Nov 2007 |
| Total Posts: 23 |
|
|
| 29 Mar 2015 10:22 PM |
So that it ends up looking something like this
loadstring(123/456/789/012/345) -- etc
Anyone?
BULWARK | R$160 | Tx20 |
|
|
| Report Abuse |
|
|
Nagrath99
|
  |
| Joined: 26 Mar 2011 |
| Total Posts: 1537 |
|
|
| 29 Mar 2015 10:23 PM |
| Your example doesn't make any sense. |
|
|
| Report Abuse |
|
|
Bulwarks
|
  |
| Joined: 26 Nov 2007 |
| Total Posts: 23 |
|
|
| 29 Mar 2015 10:24 PM |
@Nag
It makes very much sense
I asked this exact question about a year ago and I got several answers
I can't find the thread though.
BULWARK | R$160 | Tx20 |
|
|
| Report Abuse |
|
|
|
| 29 Mar 2015 10:26 PM |
"How do I turn a script into a loadstring?"
You can't, you need to turn all the code into a string. Use a remote function or bindable function
|
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 29 Mar 2015 10:26 PM |
I assume you want to load bytecode? Well Roblox disabled that, the closest you can get to do what you want is to just use \byte which will end up being the character representation. But ofc. using a print will show what the code is.
Anyways: loadstring("\112\114\105\110\116\40\34\104\105\34\41\59") is literally the same thing as: loadstring('print("hi");'); |
|
|
| Report Abuse |
|
|
Bulwarks
|
  |
| Joined: 26 Nov 2007 |
| Total Posts: 23 |
|
|
| 29 Mar 2015 10:27 PM |
@cntkillme
Yeah that's what I meant
Thanks for attempting to interpret what I said
How do I use that though?
BULWARK | R$160 | Tx20 |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 29 Mar 2015 10:28 PM |
| Use it? Like convert each character for your code into their byte representation? |
|
|
| Report Abuse |
|
|
Bulwarks
|
  |
| Joined: 26 Nov 2007 |
| Total Posts: 23 |
|
| |
|
|
| 29 Mar 2015 10:31 PM |
| You need to make it a string, like I said |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 29 Mar 2015 10:32 PM |
I don't see why you would want to but okay:
local code = [[ local x = 5; print(x + 3); ]];
local output = {}; for key = 1, #code do output[#output + 1] = code:sub(key, key):byte(); end print("\\" .. table.concat(output, "\\")); |
|
|
| Report Abuse |
|
|
|
| 29 Mar 2015 10:33 PM |
| He wants it so he can hide his code from people who is usless/10 |
|
|
| Report Abuse |
|
|
Bulwarks
|
  |
| Joined: 26 Nov 2007 |
| Total Posts: 23 |
|
|
| 29 Mar 2015 10:33 PM |
Just attempting a test cntkillme
Thank you
BULWARK | R$160 | Tx20 |
|
|
| Report Abuse |
|
|