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: Loadstring not working

Previous Thread :: Next Thread 
haskjdfsask is not online. haskjdfsask
Joined: 08 Jun 2014
Total Posts: 810
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
haskjdfsask is not online. haskjdfsask
Joined: 08 Jun 2014
Total Posts: 810
10 Feb 2016 05:34 AM
b1
Report Abuse
haskjdfsask is not online. haskjdfsask
Joined: 08 Jun 2014
Total Posts: 810
10 Feb 2016 05:53 AM
b2
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
10 Feb 2016 06:47 AM
"Hello world!
Test succes pls"




Report Abuse
checkplate is not online. checkplate
Joined: 05 Jan 2016
Total Posts: 1379
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
haskjdfsask is not online. haskjdfsask
Joined: 08 Jun 2014
Total Posts: 810
29 Mar 2016 10:48 AM
I...
ENABLED...
LOADSTRING...
IN...
SERVERSCRIPTSERVICE!!!

CAN YOU NOT READ?
Report Abuse
me2kool2talk2u is not online. me2kool2talk2u
Joined: 19 Feb 2007
Total Posts: 2914
29 Mar 2016 11:30 AM
Any errors?

Running in a regular script?
Report Abuse
Flux_Capacitor is not online. Flux_Capacitor
Joined: 07 Apr 2008
Total Posts: 45720
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
AbstractMadness is not online. AbstractMadness
Joined: 22 Dec 2014
Total Posts: 20425
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 is not online. 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
haskjdfsask is not online. haskjdfsask
Joined: 08 Jun 2014
Total Posts: 810
08 May 2016 05:53 AM
The string was too long
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