Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local sp = require(game.ServerScriptService.StudioPlus)
- local code = [[
- scope applyValue -> function(object, value)
- sp(object).val(value)
- <-
- applyValue(Workspace.BasePlate, "test")
- ]]
- local executable = sp(code).exe() --returns a loadstring. 'code' has been converted to lua code
- executable() --call the loadstring
- --[[
- The error:
- 17:19:16.147 - [string " ..."]:3: attempt to call global 'sp' (a nil value)
- 17:19:16.148 - Stack Begin
- 17:19:16.149 - Script '[string " ..."]', Line 3 - local applyValue
- 17:19:16.150 - Script '[string " ..."]', Line 6 - local executable
- 17:19:16.151 - Script 'Workspace.Script', Line 15
- 17:19:16.152 - Stack End
- ]]
Advertisement
Add Comment
Please, Sign In to add comment