Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local s = peripheral.wrap("right")
- function test()
- while true do
- event, playerName = os.pullEvent("player")
- -- print(playerName)
- if playerName == "victorbf01" or "berner5300" then
- s.speak("Welcome!")
- redstone.setOutput("bottom" , true)
- sleep(0.5)
- redstone.setOutput("bottom", false)
- os.reboot()
- else
- s.speak("Go away")
- os.reboot()
- end
- end
- end
- test()
Advertisement
Add Comment
Please, Sign In to add comment