getscriptbytecode
function getscriptbytecode(script: Script | LocalScript | ModuleScript): string | nil
Parameters
script
- TheScript
,LocalScript
orModuleScript
the bytecode would be obtained from.
Example
local AnimateScriptBytecode = getscriptbytecode(game.Players.LocalPlayer.Character.Animate)
print(AnimateScriptBytecode) -- Returns a string with the bytecode.
print(getscriptbytecode(Instance.new("LocalScript"))) -- Output: nil
Last updated