|
| 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 |
|
|
|
| 02 Mar 2014 09:45 PM |
what? no not for that,theres two different load strings from what ive heard.. |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| Joined: 20 Jun 2013 |
| Total Posts: 2699 |
|
| |
|
|
| 02 Mar 2014 10:04 PM |
player:WaitForDataReady() player:SaveString(key, data) |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 02 Mar 2014 10:11 PM |
loadstring([[print("Hello!")]])()
loadstring([[code]])() |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 02 Mar 2014 10:16 PM |
| bump..does anyone know why my specific snippet of code I just made doesn't work..?? |
|
|
| Report Abuse |
|
|
|
| 02 Mar 2014 10:16 PM |
Code = loadstring([[code]])()
Forgetting the arguments. |
|
|
| Report Abuse |
|
|
|
| 02 Mar 2014 10:17 PM |
| but if they don't type in correct code,itll break :\ |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
| |
|
|
| 02 Mar 2014 10:31 PM |
p.s. The problem was that you put a variable inside a longstring. |
|
|
| Report Abuse |
|
|