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 with humanoid spawning

Previous Thread :: Next Thread 
radiogamer is not online. radiogamer
Joined: 06 Oct 2008
Total Posts: 1975
01 Jul 2012 10:59 AM
I currently spawn various humanoid based character from the lighting, or with clone() when I respawn a character.

But the main problem is that they keep breaking and die automatically when they spawn, even when using makeJoints()


Is there any good ways to spawn characaters without letting them die?
Report Abuse
MikeAnIkes is not online. MikeAnIkes
Joined: 13 Mar 2010
Total Posts: 1581
01 Jul 2012 11:02 AM
local neck = Instance.new("Motor6D")
neck.Parent = torso
neck.Name = "Neck"
neck.MaxVelocity = .1
neck.DesiredAngle = 0
neck.Part0 = torso
neck.Part1 = head
neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
neck.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)

For a standard player size. Also, make sure to set the Humanoid's Torso.
Report Abuse
radiogamer is not online. radiogamer
Joined: 06 Oct 2008
Total Posts: 1975
01 Jul 2012 11:06 AM
hmm, can this be placed on the humanoid itself? So it runs on spawn?
Report Abuse
MikeAnIkes is not online. MikeAnIkes
Joined: 13 Mar 2010
Total Posts: 1581
01 Jul 2012 11:11 AM
Well you could just use a weld object to connect the torso and head before you move the models into lighting and also set the "Torso" property in the humanoid object to the correct part. That should work, but I dunno for sure.
Report Abuse
radiogamer is not online. radiogamer
Joined: 06 Oct 2008
Total Posts: 1975
01 Jul 2012 11:16 AM
It doesn't help.



Always annoying if they 'sometime' spawn alive...
Report Abuse
radiogamer is not online. radiogamer
Joined: 06 Oct 2008
Total Posts: 1975
01 Jul 2012 11:17 AM
what if I instead of MotorD6 use a weld for this?
Report Abuse
radiogamer is not online. radiogamer
Joined: 06 Oct 2008
Total Posts: 1975
01 Jul 2012 11:27 AM
I've been checking various gears from roblox how they spawn humanoids (like the zombie staff, or noobtube) and they make use of LoadAsset().

Is this a good option?
Report Abuse
radiogamer is not online. radiogamer
Joined: 06 Oct 2008
Total Posts: 1975
01 Jul 2012 01:21 PM
bump
Report Abuse
radiogamer is not online. radiogamer
Joined: 06 Oct 2008
Total Posts: 1975
02 Jul 2012 03:13 AM
bump
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
02 Jul 2012 06:32 AM
I use almost the same method you do for my game, though mine is more efficient. The probably difference is, mine respawn when they die.

~thedestroyer115, master RPG maker~
Report Abuse
radiogamer is not online. radiogamer
Joined: 06 Oct 2008
Total Posts: 1975
02 Jul 2012 07:55 AM
which has the same effect when you call them from Lighting and stuff...


Any solution?
Report Abuse
Megadragon2469 is not online. Megadragon2469
Joined: 23 May 2009
Total Posts: 14655
02 Jul 2012 07:59 AM
hmmmm,you could hide the model somewhere in the map and then clone it from there?

I find that cloning from Lighting is buggy
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
02 Jul 2012 08:04 AM
I clone from lighting and it's fine...
Report Abuse
radiogamer is not online. radiogamer
Joined: 06 Oct 2008
Total Posts: 1975
02 Jul 2012 08:55 AM
@thedestroyer:

Could you give me an example of what kind of humanoid model you use?
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
02 Jul 2012 09:11 AM
I made a whole thread about it. Read it.
Report Abuse
radiogamer is not online. radiogamer
Joined: 06 Oct 2008
Total Posts: 1975
02 Jul 2012 12:06 PM
and where is this thread?
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
02 Jul 2012 12:20 PM
Scripting Helpers:

http://www.roblox.com/Forum/ShowPost.aspx?PostID=71305639

~thedestroyer115, master RPG maker~
Report Abuse
radiogamer is not online. radiogamer
Joined: 06 Oct 2008
Total Posts: 1975
03 Jul 2012 02:54 AM
Bit odd, but I guess massive respawning in short time will probally work too.
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
03 Jul 2012 08:15 AM
Don't mass spawn all of them at ONE time. Load one enemy, put a wait(0.2/0.1) and spawn another enemy.

~thedestroyer115, master RPG maker~
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