Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local c = require("component")
- while true do
- x = c.openperipheral_sensor.getPlayers()
- for i,y in pairs(x) do
- z=1
- if i == 1
- then
- c.openperipheral_bridge.addText(30,30,x[z])
- c.openperipheral_bridge.sync()
- end
- if i ==2
- then
- z = 2
- c.openperipheral_bridge.addText(30,40,x[z])
- c.openperipheral_bridge.sync()
- end
- if i ==3
- then
- z = 3
- c.openperipheral_bridge.addText(30,50,x[z])
- c.openperipheral_bridge.sync()
- end
- os.sleep(0.2)
- print(z)
- end
- c.openperipheral_bridge.clear()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement