|
| 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 |
|
|
|
| 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 |
|
|
|
| 01 Jul 2012 11:06 AM |
| hmm, can this be placed on the humanoid itself? So it runs on spawn? |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 01 Jul 2012 11:16 AM |
It doesn't help.
Always annoying if they 'sometime' spawn alive... |
|
|
| Report Abuse |
|
|
|
| 01 Jul 2012 11:17 AM |
| what if I instead of MotorD6 use a weld for this? |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
| |
|
| |
|
|
| 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 |
|
|
|
| 02 Jul 2012 07:55 AM |
which has the same effect when you call them from Lighting and stuff...
Any solution? |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 02 Jul 2012 08:04 AM |
| I clone from lighting and it's fine... |
|
|
| Report Abuse |
|
|
|
| 02 Jul 2012 08:55 AM |
@thedestroyer:
Could you give me an example of what kind of humanoid model you use? |
|
|
| Report Abuse |
|
|
|
| 02 Jul 2012 09:11 AM |
| I made a whole thread about it. Read it. |
|
|
| Report Abuse |
|
|
| |
|
|
| 02 Jul 2012 12:20 PM |
Scripting Helpers:
http://www.roblox.com/Forum/ShowPost.aspx?PostID=71305639
~thedestroyer115, master RPG maker~ |
|
|
| Report Abuse |
|
|
|
| 03 Jul 2012 02:54 AM |
| Bit odd, but I guess massive respawning in short time will probally work too. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|