ForeverDev

Untitled

Sep 27th, 2014
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.68 KB | None | 0 0
  1. local sp = require(game.ServerScriptService.StudioPlus)
  2.  
  3. local code = [[
  4.    
  5.     scope applyValue -> function(object, value)
  6.         sp(object).val(value)
  7.     <-
  8.    
  9.     applyValue(Workspace.BasePlate, "test")
  10.  
  11. ]]
  12.  
  13. local executable = sp(code).exe() --returns a loadstring.  'code' has been converted to lua code
  14.  
  15. executable() --call the loadstring
  16.  
  17. --[[
  18.     The error:
  19.    
  20.     17:19:16.147 - [string "    ..."]:3: attempt to call global 'sp' (a nil value)
  21.     17:19:16.148 - Stack Begin
  22.     17:19:16.149 - Script '[string "    ..."]', Line 3 - local applyValue
  23.     17:19:16.150 - Script '[string "    ..."]', Line 6 - local executable
  24.     17:19:16.151 - Script 'Workspace.Script', Line 15
  25.     17:19:16.152 - Stack End
  26.    
  27. ]]
Advertisement
Add Comment
Please, Sign In to add comment