I’m referring to string.dump on the API reference of the string library: string | Documentation - Roblox Creator Hub
Currently, the page says that string.dump Returns a string containing a binary representation of the given function, so that a later load on this string returns a copy of the function (but with new upvalues).
, but this isn’t true in Roblox. Instead, string.dump will return an empty function (such that attempting to loadstring()
whatever it returns will be nil).
Read this thread for more info:
and this reply by zeuxcg on the same thread saying that this is by design:
The thread also says that string.dump should still work in studio, but my testing doesn’t show that. It still returns an empty function regardless.