This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Ziiklz's profile picture

Help regarding program

Started by Ziiklz, 27 January 2013 - 10:37 AM
Ziiklz #1
Posted 27 January 2013 - 11:37 AM
Hi guys of computercraft!
I've been lurking around trying to find a program / make one myself for a couple of days so i decided to register and ask

Im trying to find a script / program that does this: A melee turtle that spins endlessly to the left and attacks each time it has spun 90 degrees.

Figured id look around and tried to do a while loop

"while true do –Always loop
–Turtle.turnleft()
turtle.attack()
end

But it seems to be doing nothing?
Cloudy #2
Posted 27 January 2013 - 01:05 PM
Moved to own topic.
LBPHacker #3
Posted 27 January 2013 - 09:06 PM
Try this

while true do
turtle.turnLeft()
turtle.attack()
end

Keep in mind that Lua is case-sensitive…