generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: How do I turn a script into a loadstring?

Previous Thread :: Next Thread 
Bulwarks is not online. 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 is not online. Nagrath99
Joined: 26 Mar 2011
Total Posts: 1537
29 Mar 2015 10:23 PM
Your example doesn't make any sense.
Report Abuse
Bulwarks is not online. 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
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
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 is not online. 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 is not online. 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 is not online. 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 is not online. Bulwarks
Joined: 26 Nov 2007
Total Posts: 23
29 Mar 2015 10:29 PM
Yea


BULWARK | R$160 | Tx20
Report Abuse
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
29 Mar 2015 10:31 PM
You need to make it a string, like I said
Report Abuse
cntkillme is not online. 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
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
29 Mar 2015 10:33 PM
He wants it so he can hide his code from people who is usless/10
Report Abuse
Bulwarks is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image