Ad
Log in to vote
0

my respawn script only working SOMETIMES, and other times its just broken... why?

Asked by
St_arks 33
4 days ago

so my respawn script only works sometimes, and some times its completely broken. When it's broken, the "Human" (I changed the name to Human instead of Humanoid) make joints, the torso will float in air with head on top, and other parts just fall into nowhere... I only have: -Head, LArm,RArm,LLeg,RLeg,Torso -Humanoid -a respawn script and another script that doesn't affect the respawning of the NPC at all inside of the NPC

my respawn script:

npc = script.Parent:Clone()

function Died()
    wait(10)
    npc.Parent = script.Parent.Parent
    npc:MakeJoints()
    npc.Human.Health = npc.Human.MaxHealth
    script.Parent:Remove()
end

script.Parent.Human.Died:connect(Died)

0
I wish I could help you, but sorry, I have no idea what is the issue with your script. Perhaps try to make the joints before you move it into the workspace? RiskoZoSlovenska 71 — 3d

Hi.

Looks like you're using an ad blocker.

That's fine...

No, it really is.

Just, I mean, we put a lot of work into this site, you know?

It would be really really appreciated if you would turn off your ad blocker for our website...

We tried really hard to make our ads as unobtrusive as possible.

If you really hate ads, would you consider a $2 donation via Patreon?

Here's the link.

We love you. We hope you love us too.

.

..

...

Now back to your regularly scheduled Scripting Helpers....

...

..

.

1 answer

Log in to vote
0
Answered by 3 days ago

try remove the script.parent:remove() or make this spawn using teams

0
script.Parent:Remove() is already in there St_arks 33 — 3d
0
so remove it darkzerobits 14 — 3d
Ad

Answer this question



Ad