Cleanres

Cleans up a response string, typically removing unnecessary code block formatting from Lua scripts.

Usage:

Cleanres(string res)

Example:

string cleanedScript = Api.misc.Cleanres("```lua\ngame:GetService('Players').LocalPlayer:Kick('Injected!');\n```");
Console.WriteLine(cleanedScript); // "game:GetService('Players').LocalPlayer:Kick('Injected!');"

Last updated