Keeping time help, i have my code done but have a line 10 error for some reason, but nothing else has an error

I spent 30 minutes on this level so far and did the exact codes other people said would solve the level and it tells me this:
Line 10: ArgumentError: attack’s argument target should have type unit, but got a function. Target a unit
also here is a screenshot

Can you write your code so we can see the error

Maybe try restarting the level and actually writing your own code.
Lydia

Goodness me! I have just unlocked the glacier after ‘finishing’ the Mountain and the Desert but I have just found, funnily enough, that I hadn’t even done it properly even though it says I had done it! That is some weird error. @Chaboi_3000 probably needs to know… when I looked back, I had done the exact same code as you but I did not get the error. Now just follow what @Lydia_Song has said.

1 Like

Your problem is also that on line 9, you haven’t put the brackets that come at the end of the variable.

1 Like

Tip @Chris1 try and look at other levels that deal with the same type of code. If you can’t find a level like that look at hints and try and look at it CLOSELY

1 Like

In line 9 you don’t need second findNearestEnemy().

1 Like

if that does not work try writing your own code like @Lydia_Song said