×
Create a new article
Write your page title here:
We currently have 276 articles on Waste Of Space Wiki. Type your article name above or create one of the articles listed here!



    Waste Of Space Wiki
    Revision as of 02:28, 8 March 2020 by wiki>Robby2338 (Created page with "The game features an in-depth programming language that allows you to write and execute software that can manage and manipulate the state of other objects in-game. The name of...")
    (diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

    The game features an in-depth programming language that allows you to write and execute software that can manage and manipulate the state of other objects in-game. The name of this programming language is called Pilot.lua, which is a reference to rbx.lua.

    The main parts of programming are

    • Microcontroller - An object that stores and runs code when triggered by polysilicon and powered.
    • Port - Allows the microcontroller to interact with other objects, trigger and configure, etc.
    • Screen - A programmable object that can display user interface objects such as TextLabel, ImageLabel, etc.
    • Disk - Stores values in a directory-like format.

    The code below is code for a smart turret that takes chat commands and targets players accordingly, with the command "target playername"

    local Gyro = GetPartFromPort(1, "Gyro")
    local Microphone = GetPartFromPort(2, "Microphone")
    local Commanders = {
      Robuyasu = true;
    }
    Microphone:ConnectToEvent("Chatted", function(Player, Message)
      if not Commanders[Player] then return end
    
      if Message:lower():sub(0, 6) == "target" then
        local Victim = Message:sub(8)
        Gyro:Configure({Seek=Victim})
      end
    end)
    
    Cookies help us deliver our services. By using our services, you agree to our use of cookies.

    Recent changes

  • Axenori • 3 days ago
  • Voivsone • 4 days ago
  • Axenori • 4 days ago
  • Axenori • 5 days ago
  • Cookies help us deliver our services. By using our services, you agree to our use of cookies.