r/ComputerCraft • u/Afraid_Syrup9609 • Sep 05 '22
Help..
I need a little help. So im starting and i dont know why this doesnt work :
sleep(3)
rs.setOutput("right", true)
sleep(3)
rs.setOutput("right", false)
5
u/quickpocket Sep 05 '22
You won’t get any help unless you explain why it isn’t working. Is it not turning on or off the redstone? Is it erroring when you try to run it? What do you mean?
2
u/FlightConscious9572 Sep 05 '22
Yup this, is there an error message? Is redstone just not turning on? Is it not looping?
1
u/Afraid_Syrup9609 Sep 06 '22
Okay, i runned the it again and it works just fine, Thanks everyone for their help.
2
u/lazer_aio Sep 06 '22
No problem, never hesitate to ask for help. But next time consider more details and a longer title.
1
u/Tweaked_Turtle Sep 05 '22
To help, you need to give a description of what you want to happen vs what is actually happening
1
u/wolfe_br Sep 05 '22
Replace "sleep" with "os.sleep", maybe that works?
3
u/fatboychummy Sep 05 '22
os.sleep is just set to sleep in the bios (or startup.lua or whatever)
It's literally just
os.sleep = sleep.Doing that will change nothing.
1
u/wolfe_br Sep 05 '22
Oh okay, I didn't know that. Well I'm not sure without more information then...
1
u/Afraid_Syrup9609 Sep 05 '22
Well, i want the redstone switch on and off but it gives me an error message