Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function startup()
- term()
- event, n = os.pullEvent("player")
- if (n == "minicl55" or n == "AZNCharizard" or n== "Skulldood") then
- print("Press 1 for minicl55's house\nPress 2 for mankool's house\nPress 3 for skulldood's house\nPress 4 for stan's house, just because"
- event, p = os.pullEvent("char")
- if (p == "1") then -- Blue
- pl = "minicl55's house"
- rs.getBundledOutput("bottom",colors.add(rs.getBundledOutput("bottom"), colors.blue))
- end
- if (p == "2") then --Red
- pl = "Mankool's house"
- rs.getBundledOutput("bottom",colors.add(rs.getBundledOutput("bottom"), colors.red))
- end
- if (p == "3") then --Orange
- pl = "Skulldood's house"
- rs.getBundledOutput("bottom",colors.add(rs.getBundledOutput("bottom"), colors.orange))
- end
- if (p == "4") then --Purple
- pl = "Stan's house"
- rs.getBundledOutput("bottom",colors.add(rs.getBundledOutput("bottom"), colors.purple))
- end
- print(n.." has been teleported to "..pl..".")
- redstone.setOutput("bottom", true)
- sleep(1)
- redstone.setOutput("bottom", false)
- startup()
- term()
- else
- print("Whoops, it appears like you don't have permissions.")
- startup()
- term()
- end
- end
- function term
- local event = { os.pullEventRaw(_sFilter) }
- if event[1] == "terminate" then
- shell.run("startup")
- end
- return unpack(event)
- end
- startup()
Advertisement
Add Comment
Please, Sign In to add comment