|
| 10 Feb 2016 05:19 AM |
I ENABLED LOADSTRING IN SERVERSCRIPTSERVICE I ENABLED LOADSTRING IN SERVERSCRIPTSERVICE I ENABLED LOADSTRING IN SERVERSCRIPTSERVICE
local code="print('Hello world!');print('Test succes pls');" f=loadstring(code);f()
>> script:2 attempt to call local 'f' (a nil value) |
|
|
| Report Abuse |
|
|
| |
|
| |
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 10 Feb 2016 06:47 AM |
"Hello world! Test succes pls"
|
|
|
| Report Abuse |
|
|
|
| 10 Feb 2016 06:51 AM |
| Click server script service, go to properties, check loads trying enabled, realise you're an idiot that can't read or problem solve |
|
|
| Report Abuse |
|
|
|
| 29 Mar 2016 10:48 AM |
I... ENABLED... LOADSTRING... IN... SERVERSCRIPTSERVICE!!!
CAN YOU NOT READ? |
|
|
| Report Abuse |
|
|
|
| 29 Mar 2016 11:30 AM |
Any errors?
Running in a regular script? |
|
|
| Report Abuse |
|
|
|
| 29 Mar 2016 12:17 PM |
loadstring is working, it's just returning nil because there was an error:
local code="print('Hello world!');print('Test succes pls');" local f,e=loadstring(code); if f then f() else print(e) end
In this case I don't see an error, but if loadstring was disabled you would haven't reached the part when you call f. |
|
|
| Report Abuse |
|
|
|
| 29 Mar 2016 12:22 PM |
Ok. I see the problem. Go to ServerScriptService, and under there is a check box marked "LoadStringEnabled". Check that box and then it should work properly.
#code R+ | local RAP = "R$383,681"; local robux = "R$1,572" |
|
|
| Report Abuse |
|
|
gskw
|
  |
| Joined: 05 Jan 2013 |
| Total Posts: 1364 |
|
|
| 29 Mar 2016 12:38 PM |
If that doesn't work you can also do "game:GetService 'ServerScriptService'.LoadStringEnabled = true"
Jokes aside, check that it's not a LocalScript. |
|
|
| Report Abuse |
|
|
| |
|