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: Cloning Help

Previous Thread :: Next Thread 
ultragumball is not online. ultragumball
Joined: 18 Mar 2011
Total Posts: 521
21 Mar 2014 03:38 PM
Ok, so I've been working on a game, and I've made this script that makes it so that it spawns zombies (aliens) every few minutes. It works great, but the only problem is that when the zombie spawns, it's dead. Basically, the head seems to fall wherever it wants, but the torso stays upright. I don't know why, though. Here's the script. By the way, the only part that doesn't work is the health, the checking seems all right. Script:

while true do
newalien = game.StarterGui.lvlonealien:clone()
newalien:MakeJoints()
newalien.Torso.Position = Vector3.new(-128.435, 7.199, -26.033)
newalien.Name = (" ")
newalien.Parent = game.Workspace
newalien.Alien.Health = 100
newalien.Alien.MaxHealth = 100
wait(60)
if newalien == nil then return end
if newalien ~= nil then
wait(30)
if newalien == nil then return end
if newalien ~= nil then
wait(20)
if newalien == nil then return end
if newalien ~= nil then return end
end
end
end
Report Abuse
ultragumball is not online. ultragumball
Joined: 18 Mar 2011
Total Posts: 521
21 Mar 2014 04:45 PM
Bump.
Report Abuse
RoflBread is not online. RoflBread
Joined: 18 Jun 2009
Total Posts: 3803
21 Mar 2014 05:02 PM
Try MakeJoints() after you set it's parent to workspace. Not sure.
Report Abuse
ultragumball is not online. ultragumball
Joined: 18 Mar 2011
Total Posts: 521
21 Mar 2014 05:48 PM
Still doesn't work.
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
21 Mar 2014 05:50 PM
newalien.Parent = Workspace
newalien:MakeJoints()
newalien.Alien.MaxHealth = 100
newalien.Humanoid.Health = newalien.Alien.MaxHealth
newalien:MakeJoints()
Report Abuse
ultragumball is not online. ultragumball
Joined: 18 Mar 2011
Total Posts: 521
21 Mar 2014 08:16 PM
while true do
newalien = game.StarterGui.lvlonealien:clone()
newalien:MakeJoints()
newalien.Parent = Workspace
newalien:MakeJoints()
newalien.Alien.MaxHealth = 100
newalien.Alien.Health = 100
newalien:MakeJoints()
newalien.Torso.Position = Vector3.new(-128.435, 7.199, -26.033)
newalien.Name = ("lvlonealien")
wait(60)
if newalien == nil then return end
if newalien ~= nil then
wait(30)
if newalien == nil then return end
if newalien ~= nil then
wait(20)
if newalien == nil then return end
if newalien ~= nil then return end
end
end
end

Still doesn't work. By the way, "Alien" is the name for Humanoid in my model. I don't know if that is the thing killing the model once it's cloned.
Report Abuse
ultragumball is not online. ultragumball
Joined: 18 Mar 2011
Total Posts: 521
21 Mar 2014 08:23 PM
I think the problem is that it's teleporting the Torso, but nothing else. Is this a problem with the "MakeJoints", or do I just have to teleport each and every body part?
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