generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Help??

Previous Thread :: Next Thread 
callmeduck2 is not online. callmeduck2
Joined: 18 Jan 2010
Total Posts: 2804
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
Cachinnation is not online. Cachinnation
Joined: 21 Aug 2011
Total Posts: 1797
11 Oct 2011 03:08 PM
if game.Workspace:findFirstChild(tostring(Enemies[1][2]), true) ~= nil then
Report Abuse
callmeduck2 is not online. callmeduck2
Joined: 18 Jan 2010
Total Posts: 2804
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image