Posted 25 March 2014 - 12:32 AM
So, I've been trying to make a code that receives a pulse of redstone from the back and then pulses front for 28 seconds then resets. But it says too long without yielding
Heres my code:
Heres my code:
while true do
local coins = redstone.getInput("back")
if coins == true then
rs.setOutput("front", true)
sleep(28)
rs.setOutput("front", false)
local coins = false
end
end
Any solution, if yes please respond with a code!