|
| 29 May 2015 04:53 PM |
Anyone know why this simple script doesn't work online?
i = Instance.new("Script", workspace) i.Source = "print 'Hello Werld!'" |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 29 May 2015 04:55 PM |
That wouldn't would anytime.
Source is locked.
I script -~ chimmihc |
|
|
| Report Abuse |
|
|
|
| 29 May 2015 05:05 PM |
| Actually, it did work in the old days of Roblox. |
|
|
| Report Abuse |
|
|
|
| 29 May 2015 05:05 PM |
Is there a way around it?
I just need to execute code from httpservice. |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 29 May 2015 05:08 PM |
I am aware that it was not always locked XD
I meant that It would not work in studio or on a server.
I script -~ chimmihc |
|
|
| Report Abuse |
|
|
|
| 29 May 2015 05:09 PM |
Make a script load the code that you get from your website by making the code execute using loadstring. Loadstring needs to be enabled as a property in serverscriptservice. http://wiki.roblox.com/index.php?title=Function_Dump/Core_Functions#loadstring
~secretidagent |
|
|
| Report Abuse |
|
|
|
| 29 May 2015 05:10 PM |
| I know I need to enable loadstring, but is there a way to execute code other than using .Source? |
|
|
| Report Abuse |
|
|
|
| 29 May 2015 05:17 PM |
Loadstring.....
loadstring("print('hello')")
will execute the code within. Just plug in the code you got from your website and it will execute using loadstring.
~secretidagent |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
|
| 29 May 2015 06:09 PM |
| http://www.roblox.com/Forum/ShowPost.aspx?PostID=143065825 |
|
|
| Report Abuse |
|
|
|
| 29 May 2015 06:33 PM |
| That's pretty stupid if you have the option of using loadstring, though. |
|
|
| Report Abuse |
|
|
|
| 29 May 2015 06:34 PM |
| Its more for client side loadstring and not actually having loadstring. |
|
|
| Report Abuse |
|
|