Advertisement
Vzurxy

is_synapse_script func

May 16th, 2019
323
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. getgenv().is_synapse_script = function(scr)
  2. local source = decompile(scr, "new")
  3. local stringsource = tostring(source)
  4. if stringsource:match("--Synapse X") or string.find(stringsource, "Decompiler") then
  5. return true
  6. else
  7. return false
  8. end
  9. end
  10.  
  11. -- Useful for getting every scripts instead of SynapseX scripts, as you can't get the source of them.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement