×
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

    Servo: Difference between revisions

    Content deleted Content added
    No edit summary
    Replace example of code
    Line 21: Line 21:
    ====Example====
    ====Example====
    <syntaxhighlight lang="lua" line="1">
    <syntaxhighlight lang="lua" line="1">
    local servo = GetPartFromPort(1, "Servo")
    local servo = GetPartFromPort(1,"Servo")
    local switch = GetPartFromPort(2,"Switch")


    switch:Configure({SwitchValue=false})
    servo:SetAngle(15) -- Set the angle of servo's hinge.
    servo:SetAngle(math.random(1,360))
    wait(2)
    switch:Configure({SwitchValue=true})


    </syntaxhighlight>
    </syntaxhighlight>
    Cookies help us deliver our services. By using our services, you agree to our use of cookies.

    Recent changes

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