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
 

Help with script

Previous Thread :: Next Thread 
HILLBILLYY is not online. HILLBILLYY
Joined: 08 May 2010
Total Posts: 764
09 Sep 2013 02:22 PM
name="Humanoid"



robo=script.Parent:clone()



while true do
wait(1)
if script.Parent.Humanoid.Health<1 then
robot=robo:clone()
robot.Parent=game.Workspace
robot:makeJoints()
script.Parent:remove()

end

end

this keeps geting a parent nil or something anyone know why?
Report Abuse
brinkokevin is not online. brinkokevin
Joined: 25 Jul 2012
Total Posts: 1673
09 Sep 2013 02:28 PM
if script.Parent.name.Health<1 then
Report Abuse
HILLBILLYY is not online. HILLBILLYY
Joined: 08 May 2010
Total Posts: 764
09 Sep 2013 02:43 PM
The humanoid is named Humanoid already but something isnt letting it work on that line
Report Abuse
Merilo is not online. Merilo
Joined: 01 Aug 2011
Total Posts: 500
09 Sep 2013 03:00 PM
By default, the character is not Archivable, so you can't clone it because of that.
Report Abuse
HILLBILLYY is not online. HILLBILLYY
Joined: 08 May 2010
Total Posts: 764
09 Sep 2013 03:10 PM
Yes but its a zombie...
Report Abuse
HILLBILLYY is not online. HILLBILLYY
Joined: 08 May 2010
Total Posts: 764
09 Sep 2013 03:23 PM
name="Humanoid"

robo=script.Parent:clone()

while true do
wait(1)
if script.Parent.Humanoid.Health<1 then -- this lines messed up cant index parent or something
robot=robo:clone()
robot.Parent=game.Workspace.Zombies
robot:makeJoints()
script.Parent:remove()
end
end


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