Cloudy API Documentation
  • SETUP
    • Introduction
    • Setting Up Your Project
    • Update Log
    • Cloudy API Tutorial
    • Credits
  • FUNCTIONS
    • AutoInject
    • Inject
    • Execute
    • GetClientsList
    • RegisterExecutor
    • IsInjected
    • AutoSetup
    • disableSecurity
    • isRobloxOpen
    • CheckRobloxVersion
    • GetUsername
    • killRoblox
    • AskAi
    • Cleanres
    • SetDiscordRpc
    • IsAutoInjectEnabled
  • credits
  • GetUserIdFromUsername
  • GetAvatar
  • SetScriptJS
  • AddTabJS
  • GetDiscordUsername
  • cPlaceId
  • cPlaceName
  • cPlaceImage
  • CHAT FUNCTIONS
    • ConnectToServer
    • ReceiveMessages
    • SendMessage
    • Disconnect
    • OnMessageReceived
    • OnError
    • Messages
Powered by GitBook
On this page
  1. FUNCTIONS

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!');"
PreviousAskAiNextSetDiscordRpc

Last updated 2 months ago