|
| 23 Jan 2015 03:29 PM |
Man, I am making an AI with this script, I took it from a free model:
zombo = script.Parent:Clone()
while true do wait(10) if script.Parent.Humanoid.Health <= 1 then zombie = zombo:Clone() zombie.Parent = script.Parent zombie:makeJoints() script.Parent:remove() end end
I tried and tried to fix, but the character only disappears. |
|
|
| Report Abuse |
|
|
|
| 23 Jan 2015 03:50 PM |
change script.Parent to game.Workspace on line 7 ONLY.
|
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 23 Jan 2015 04:28 PM |
Here's what I meant:
local zombo = script.Parent:Clone()
while true do wait(10) if script.Parent.Humanoid.Health <= 1 then local zombie = zombo:Clone() zombie.Parent = game.Workspace zombie:makeJoints() script.Parent:remove() end end |
|
|
| Report Abuse |
|
|
| |
|
|
| 23 Jan 2015 04:41 PM |
| Nope, it doesn't work and I will not quit! |
|
|
| Report Abuse |
|
|
|
| 23 Jan 2015 04:54 PM |
| Any output? Also, use the Humanoid.Died event. |
|
|
| Report Abuse |
|
|
|
| 24 Jan 2015 03:03 PM |
| @stickmaster: Look also at line 7 in my version compared to yours. Mine says zombie.Parent=game.Workspace. Yours says zombie.Parent=script.Parent. |
|
|
| Report Abuse |
|
|
|
| 24 Jan 2015 03:13 PM |
zombo = script.Parent:Clone()
while true do script.Parent.Humanoid.Died:connect(function() zombie = zombo:Clone() zombie.Parent = script.Parent zombie:makeJoints() script.Parent:remove() end) end |
|
|
| Report Abuse |
|
|