Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local component = require("component")
- local holo = component.hologram
- local term = require("term")
- local io = require("io")
- function input()
- term.clear()
- term.write("What scale would you like to set the holo to? ")
- local s = io.read()
- return tonumber(s)
- end
- while true do
- local s = input()
- if s > .3 and s < 3 then
- holo.setScale(s)
- break
- else
- print("Please enter a number between .3 and 3")
- os.sleep(2)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement