Posted 28 July 2013 - 01:26 PM
I want a code that will when have a monitor saying "Click the player detonator" and when someone right clicks a player detector it will pop up on monitor saying "Hello Player!" and then sit there or ten seconds then go away and have the original screen popup. I would also like it to support 6 people in the same time frame and each stay up for ten seconds. And I needed it to keep track of who came in. I got it all done but the ten seconds and it keeps track of who came in on the computer.
here is my code:
Thankyou in advanced:)
here is my code:
p = 1
j = 0
local monitor = peripheral.wrap("top")
monitor.clear()
monitor.setTextColor(2)
monitor.setTextScale(1.9)
repeat
monitor.setCursorPos(1,1)
p = 1
repeat
event, m = os.pullEvent("player")
monitor.write("Hello ")
monitor.write(m)
print(m)
p = p + 1
monitor.setCursorPos(1,p)
until p == 10
monitor.clear()
until j == 5
Thankyou in advanced:)