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
 

Re: problem with double brackets

Previous Thread :: Next Thread 
ALERIFICALNEUMORAITI is not online. ALERIFICALNEUMORAITI
Joined: 21 Nov 2010
Total Posts: 302
30 May 2013 06:59 PM
So i have a script that does something like this.

b = "fsd[[fsd]]fsd"
loadstring([[ print(]]..b..[[) ]])()

- attempt to call a nil value

i think its because its trying to read a string with double brackets when the string is signified by double brackets

but how would i mitigate that
Report Abuse
StealthKing95 is not online. StealthKing95
Joined: 13 Dec 2008
Total Posts: 4263
30 May 2013 07:11 PM
"attempt to call a nil value" happens when you are trying to call a function that simply doesnt exist.




a = function()
print("a")
end

A()

>attempt to call a nil value
Report Abuse
ALERIFICALNEUMORAITI is not online. ALERIFICALNEUMORAITI
Joined: 21 Nov 2010
Total Posts: 302
30 May 2013 07:15 PM
k so i tried something different-

local b = "fsd[[fsd]]fsdf"

assert(loadstring([[
print(]]..b..[[)
]]))()

Workspace.Script:2: [string " print(fdsf[[fdsfsd]]fsdfsdf)..."]:1: ')' expected near 'fsdfsdf'
Report Abuse
ALERIFICALNEUMORAITI is not online. ALERIFICALNEUMORAITI
Joined: 21 Nov 2010
Total Posts: 302
30 May 2013 07:25 PM
Nvm, it was only because i forgot quotations inside of the string b...
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