Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local playerList = {"Captain_Admiral", "Stagfish", "Lionsaw22"}
- while true do
- --Main
- event, clickingPlayer = os.pullEvent("player")
- for i=1, #playerList do
- if playerList[i] == clickingPlayer then
- redstone.setOutput("left", true)
- os.sleep(3)
- redstone.setOutput("left", false)
- break
- end
- if i == #playerList then
- redstone.setOutput("front", true)
- os.sleep(1)
- redstone.setOutput("front", false)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement