|
| 11 Oct 2011 03:08 PM |
heres what i have..
Enemies = {"FootEnemy", "FlamingEnemy"} while true do if game.Workspace:findFirstChild(Enemies) ~= nil then print("Enemy is in the game!") wait(1) else print("Enemy does not exist!") script.Parent.NewLvl.X.Value = 2 wait(1) end end
and the output
Tue Oct 11 16:04:33 2011 - Unable to cast value to std::string Tue Oct 11 16:04:33 2011 - Script "Workspace.Check", Line 3
|
|
|
| Report Abuse |
|
|
| 11 Oct 2011 03:08 PM |
| if game.Workspace:findFirstChild(tostring(Enemies[1][2]), true) ~= nil then |
|
|
| Report Abuse |
|
|
| 11 Oct 2011 03:10 PM |
| and is i add more to the table would i just add [3][4][5] and so on? |
|
|
| Report Abuse |
|