Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if not fs.exists("GUI") then
- http.request("http://pastebin.com/raw/PmCUHuTr")
- local requesting = true
- while requesting do
- local event, url, sourceText = os.pullEvent()
- if event == "http_success" then
- local respondedText = sourceText.readAll()
- sourceText.close()
- local f = fs.open("GUI","w")
- f.write(respondedText)
- f.close()
- requesting = false
- elseif event == "http_failure" then
- print("Server didn't respond.")
- requesting = false
- end
- end
- end
- local gui = os.loadAPI("GUI")
- local menu = gui.newMenu()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement