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



    Waste Of Space Wiki

    Disk: Difference between revisions

    Content deleted Content added
    No edit summary
    No edit summary
    Tags: Mobile edit Mobile web edit
     
    (3 intermediate revisions by 2 users not shown)
    Line 10: Line 10:
    }}
    }}


    The '''Disk''' is a programmable object that can be used to store and retrieve the value by writing and reading, acting as a data-storage device. The maximum storage of the Disk is 10KB. Its data will be saved in a game.
    The Disk is a programmable object that is used for storing and retrieving value by writing (saving its data) and reading (loading its data), acting as a data storage device. The maximum storage on the disk is 10KB. Its data will be saved in a game.


    ==Programming==
    ==Programming==
    Line 35: Line 35:
    end
    end


    Button:ConnectToEvent("OnClick", Fire)
    Button:Connect("OnClick", Fire)
    OffButton:ConnectToEvent("OnClick", function()
    OffButton:Connect("OnClick", function()
    Disk:Write(1, not Disk:Read(1))
    Disk:Write(1, not Disk:Read(1))
    end)
    end)
    Line 42: Line 42:


    TextLabel Data Save:
    TextLabel Data Save:
    <syntaxhighlight lang="lua" line=1>
    <syntaxhighlight lang="lua" line="1">
    local Screen = GetPartFromPort(1, 'Screen')
    local Screen = GetPartFromPort(1, 'Screen')
    local Disk = GetPartFromPort(3,'Disk')
    local Disk = GetPartFromPort(3,'Disk')
    Line 77: Line 77:
    })
    })


    Keyboard:ConnectToEvent("TextInputted", function(text, playername)
    Keyboard:Connect("TextInputted", function(text, playername)
    TextLabel:ChangeProperties({
    TextLabel:ChangeProperties({
    Text = text
    Text = text
    Line 109: Line 109:


    ==Gallery==
    ==Gallery==
    [[File:OldDisk.jpg|thumb|left|Disk in the tutorial place]]
    [[File:OldDisk.jpg|thumb|left|Disk in the crafting menu in the old version.]]


    [[Category:Parts]]
    [[Category:Parts]]
    Cookies help us deliver our services. By using our services, you agree to our use of cookies.

    Recent changes

  • Jo857294 • 2 days ago
  • 116.111.185.163 • 15 days ago
  • 116.111.185.163 • 15 days ago
  • 116.111.185.163 • 15 days ago
  • Cookies help us deliver our services. By using our services, you agree to our use of cookies.