Jump to content




startup:2: attempt to index ? (a nil value)


  • You cannot reply to this topic
2 replies to this topic

#1 Semanari

  • New Members
  • 1 posts

Posted 10 May 2013 - 09:31 PM

I made a program to automate my mob farm I am using the MindCrack pack (latest update) and I keep getting the error startup:2: attempt to index ? (a nil value)
The code was:
while true do
turtle.attack()
os.sleep(1)
end
What am I doing wrong?
Edit: Nevermind, I was using an XP melee turtle I guess that made it not work

#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 11 May 2013 - 02:04 PM

Split into new topic. Next time, please use the New Members Needing to Ask Questions topic.

#3 KaoS

    Diabolical Coder

  • Members
  • 1,510 posts
  • LocationThat dark shadow under your bed...

Posted 11 May 2013 - 04:58 PM

View PostSemanari, on 10 May 2013 - 09:31 PM, said:

while true do
turtle.attack()
os.sleep(1)
end

should work fine in any turtle with a sword. you must've spelt turtle wrong in the actual game





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users