is_synapse_script func

Vzurxy May 16th, 2019 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
  11. -- Useful for getting every scripts instead of SynapseX scripts, as you can't get the source of them.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand