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

SetScriptJS

Converts a Lua script into a JavaScript-safe string format for the web editor by encoding it. Returns the encoded script that can be executed in the editor.

Usage:

Api.misc.SetScriptJS(string script);

Example:

string luaScript = "print('Hello, World!')";
string encodedScript = Api.misc.SetScriptJS(luaScript); 
// Returns: setText("print('Hello, World!')")
PreviousGetAvatarNextAddTabJS

Last updated 1 month ago