Printing function content

how to print function content i tried printing the function and i got this
image
image
its calls it and then prints -
so how to print the function content?
im trying to find a way to decode scripts

I don’t think you can get the “content” of a function.
You can get the “content” of a script using the .Source property and somehow parse the script to find what is inside the function. This solution only works for plugins tho.

1 Like

You can get the string to print by return the string

image

i want to print what the function have like
part:Destroy()
event:FireServer()
something like that

1 Like

sorry, i read incorrectly and yes i think the only way is .Source but is for plugin

1 Like

but i want it for exploiting scripts that is obfuscator so i can decode it and patch it

hacker always have more control on the client side that the script you can’t stop exploiting on the client side

ik but most of them are skids and prob the one who made the script will just make it and leave it with no updates

it’s true what you say, i can’t say anything else

Can you give more details? Where is this function? Is it accessible before you start the game? What do you need to do with the function’s content? maybe there’s a better approach.

i just want to get the functions content to decode some scripts
tHOb (1) (1).lua (117.8 KB)
something like this script was made for exploiters to spam attacks and its obfuscated so if i get functions content i might be able to decode them and understand them then patch them

Currently on phone so can’t really view this file, can you send it as plain text?

image
i cant

1 Like

Simple Answer: No, you cannot print a function’s content.

Even if there was a way to get the source code It will still be obfuscated. In order to get a deobfuscated code you have to use a deobfuscator or dump the code at run time (not sure about that). And… yeah its not that easy to find a software that do that…

If you want to get the source of a script (without using .Source for plugins) you can use Synapse X script dumper (It will not deobfuscate the script)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.