Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tArgs = { ... }
- if #tArgs == 0 or #tArgs > 1 then
- print("Usage:")
- print("close <password>")
- return
- end
- if #tArgs == 1 then
- local password = tArgs[1]
- if password == "abc123" then -- Change 'abc123' to your password.
- print("Closing door...")
- rs.setOutput("right", false) -- Change 'right' to the side of your door.
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement