Powerlang Docs
  • Welcome!
  • Beginner's Guide
    • Syntax
    • Directives
    • Environment
    • Special types
    • Functions
    • Tables
    • Loops
    • Conditions
    • Events
    • Libraries
    • Comments and Flags
  • Creating a Game
    • Project Introduction: Potato Rush
    • Creating the main game loop
    • Creating potatoes
    • Keeping track of score
  • Libraries
    • Special Types
      • BrickColor
      • CFrame
      • Color3
      • Instance
      • NumberRange
      • UDim2
      • Vector2
      • Vector3
    • Services
      • DataStore
      • Debris
      • Mouse
      • Pathfinding
      • PhysicsService
      • Players
      • Ray
      • TweenService
    • compiler
    • math
    • os
    • string
    • table
    • retrostudio
  • Advanced Information
    • Instance Functions
    • Global Functions
    • Multithreading
    • Compiler Library
Powered by GitBook
On this page
  1. Libraries

compiler

compiler is a library unique to Powerlang. Please check out Compiler Library to learn more.

Function
Description

InsertBlock(BlockName: string, BlockID: string, ...args)

Inserts a new RetroStudio Visual Scripting block with the specified name and ID, taking additional arguments as inputs. Requires at least two arguments: BlockName (friendly name) and BlockID (block ID).

InsertBlockConnectedLast(BlockName: string, BlockID: string, ...args)

Inserts a new RetroStudio Visual Scripting block connected to the last created block, taking additional arguments as inputs. Requires at least two arguments: BlockName and BlockID.

version() -> string

Returns the current Powerlang version as a string. An example output would be: Beta 0.9.

credits() -> string

Returns the Powerlang credits string. Currently this is: Powerlang - The Ultimate Programming Language (c) vopwn55, 2024

Special thanks to: NicePotato - Being a good friend RJAI - Emotional Support

path(Path: string) -> Instance?

Attempts to obtain an instance at path Path if it exists, bypassing Powerlang's own traversal mechanism. This is often more performant in some cases.

equation(Equation: string) -> any

Solves an equation using RetroStudio's Equation block. This is often more performant than Powerlang's native equation solver, but must be used carefully.

PreviousTweenServiceNextmath

Last updated 7 months ago