Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- This is a joke program. Please don't use this for in-game evil
- -- Side the glasses bridge is on
- glass = peripheral.wrap("top")
- -- Adds a black box to cover the entire screen. It wil gradually darken to black out your vision
- for i = 0, 1, 0.1 do
- glass.clear()
- glass.addBox(0, 0, 1000, 1000, 0x000000, i)
- sleep(0.1)
- end
- -- Adds text to screen
- glass.addText(100, 100,"Buy this thing!", 0xFFFFFF)
- glass.addText(100, 110,"For ONLY $9.99*", 0xFFFFFF)
- glass.addText(100, 150,"*Per minute for eternity", 0xFFFFFF)
- -- adds an icon to the screen | Change the "1081" to whatever block/item ID you want
- glass.addIcon(200, 100, 1081, 1)
- -- Writes and updates the timer for when the "ad" will disappear
- for k = 10, 1, -1 do
- glass.addBox(99, 169, 1000, 1000, 0x000000, 1)
- glass.addText(100, 170,"This ad will close in " .. k .. " seconds ", 0xFFFFFF)
- sleep(1)
- end
- -- Clears everything after it's done
- glass.clear()
Advertisement
Add Comment
Please, Sign In to add comment