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 » Scripting Helpers
Home Search
 

how do i use "loadstring" and "savestring"?

Previous Thread :: Next Thread 
islandmaker2012 is online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
02 Mar 2014 09:42 PM
im a little confused,people told me that ananimus (the one who made the first SB)
used loadstring and savestring to run scripts
how would I use this??
--maybe show a small snippet of code,or direct me to a wiki page or video?
Report Abuse
islandmaker2012 is online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
02 Mar 2014 09:45 PM
what?
no not for that,theres two different load strings from what ive heard..
Report Abuse
islandmaker2012 is online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
02 Mar 2014 09:46 PM
nvm,searched it up,found this page:

http://www.roblox.com/Forum/ShowPost.aspx?PostID=54506436
Report Abuse
transIate is not online. transIate
Joined: 20 Jun 2013
Total Posts: 2699
02 Mar 2014 10:03 PM
macdonaldz
Report Abuse
HalfCircuit is not online. HalfCircuit
Joined: 20 Apr 2011
Total Posts: 5018
02 Mar 2014 10:04 PM
player:WaitForDataReady()
player:SaveString(key, data)
Report Abuse
islandmaker2012 is online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
02 Mar 2014 10:10 PM
I just said..
NOT THAT..

script.Parent.FocusLost:connect(function()
code = script.Parent.Text
Code = loadstring([[code]])
if Code then
Code()
end
end)

why doesn't this work though?:(

p.s this works:

String = [[print "Hello World!"]]
S = loadstring(String)
if S then
S()
end
Report Abuse
Eternalfireeater is not online. Eternalfireeater
Joined: 01 May 2011
Total Posts: 10027
02 Mar 2014 10:11 PM
loadstring([[print("Hello!")]])()

loadstring([[code]])()
Report Abuse
islandmaker2012 is online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
02 Mar 2014 10:13 PM
@eternal
ik that works..i just said that sort of thing works..

why doesn't THIS SPECIFIC SNIPPET work??

script.Parent.FocusLost:connect(function()
code = script.Parent.Text
Code = loadstring([[code]])
if Code then
Code()
end
end)
Report Abuse
islandmaker2012 is online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
02 Mar 2014 10:16 PM
bump..does anyone know why my specific snippet of code I just made doesn't work..??
Report Abuse
Eternalfireeater is not online. Eternalfireeater
Joined: 01 May 2011
Total Posts: 10027
02 Mar 2014 10:16 PM
Code = loadstring([[code]])()

Forgetting the arguments.
Report Abuse
islandmaker2012 is online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
02 Mar 2014 10:17 PM
but if they don't type in correct code,itll break :\
Report Abuse
islandmaker2012 is online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
02 Mar 2014 10:17 PM
@eternal,jut tried that,got an error..

Players.Player1.PlayerGui.ScreenGui.TextBox.Script:3: attempt to call a nil value
Report Abuse
Eternalfireeater is not online. Eternalfireeater
Joined: 01 May 2011
Total Posts: 10027
02 Mar 2014 10:19 PM
Here:

script.Parent.FocusLost:connect(function()
code = script.Parent.Text
Code = loadstring(code)
if Code then
Code()
end
end)
Report Abuse
islandmaker2012 is online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
02 Mar 2014 10:21 PM
omg!Thx soo much :D
Report Abuse
Eternalfireeater is not online. Eternalfireeater
Joined: 01 May 2011
Total Posts: 10027
02 Mar 2014 10:31 PM
p.s.
The problem was that you put a variable inside a longstring.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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