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: How can you prevent zombies from breaking?

Previous Thread :: Next Thread 
legend8887 is not online. legend8887
Joined: 06 Nov 2010
Total Posts: 13765
05 Dec 2012 08:45 PM
How can you prevent a zombie from breaking when it enters the game? Not touching another zombie, but its joints falling apart.
Report Abuse
LUVMARIOLUIGI10000 is not online. LUVMARIOLUIGI10000
Joined: 16 May 2009
Total Posts: 1244
05 Dec 2012 08:46 PM
Script > Zombie

script.Parent:MakeJoints()
Report Abuse
1Topcop is not online. 1Topcop
Joined: 09 Jun 2009
Total Posts: 6635
05 Dec 2012 08:46 PM
ZombieModel:MakeJoints()
Report Abuse
CreamPiess is not online. CreamPiess
Joined: 30 Nov 2012
Total Posts: 137
05 Dec 2012 09:06 PM
Nice question :p. This may help alot of problems.
Report Abuse
legend8887 is not online. legend8887
Joined: 06 Nov 2010
Total Posts: 13765
05 Dec 2012 09:22 PM
@LUV

I tried that, they still break. I also tried using that script and welding the parts of the zombie together, but they still break.
Report Abuse
legend8887 is not online. legend8887
Joined: 06 Nov 2010
Total Posts: 13765
05 Dec 2012 09:33 PM
It only happens sometimes, I don't care. I'm not worried about it.
Report Abuse
LUVMARIOLUIGI10000 is not online. LUVMARIOLUIGI10000
Joined: 16 May 2009
Total Posts: 1244
05 Dec 2012 09:38 PM
Are you inserting the zombie from lighting to workspace?
Report Abuse
legend8887 is not online. legend8887
Joined: 06 Nov 2010
Total Posts: 13765
05 Dec 2012 09:40 PM
Yes.
Report Abuse
legend8887 is not online. legend8887
Joined: 06 Nov 2010
Total Posts: 13765
05 Dec 2012 09:46 PM
Why?
Report Abuse
LUVMARIOLUIGI10000 is not online. LUVMARIOLUIGI10000
Joined: 16 May 2009
Total Posts: 1244
05 Dec 2012 09:48 PM
Well then here:

Script > Zombie

Zombie = script.Parent
Humanoid = Zombie.Humanoid - change if necessary.
MaxHealth = 100
ZClone = Zombie:Clone()

function Spawn()
script.Parent:MakeJoints()
Humanoid.MaxHealth = MaxHealth
Humanoid.Health = MaxHealth
end

Spawn()


Humanoid.Died:connect(function()
Zombie:remove()
wait(2)
ZClone.Parent = game.Workspace
ZClone:MakeJoints()
end)


--NOTE: YOU HAVE TO EDIT THIS IF YOU WANT IT TO WORK.
Report Abuse
legend8887 is not online. legend8887
Joined: 06 Nov 2010
Total Posts: 13765
05 Dec 2012 09:50 PM
Why would I have to edit it? Looks good to me.
Report Abuse
legend8887 is not online. legend8887
Joined: 06 Nov 2010
Total Posts: 13765
05 Dec 2012 10:39 PM
It seems as if it works. I'll have to test it a lot more tomorrow, though.

I only had to edit one thing in the script.
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