Respawning only works once with my script

Hello everyone,

I’m just about finished coding my custom spawn/respawn script, however, I get an error where I can only respawn once. The next time I die, I only see my character broken with an empty health bar over its head.

Here’s my server script. Not sure where I went wrong, but I’m thinking it might be that the respawning function is within the PlayerAdded function.

If you have any idea what might be causing this, please let me know!

Side note - this isn’t a custom character script. I’m very aware of how to go about setting one, but that’s not what I’m trying to do here.

Not sure where I went wrong, but I’m thinking it might be that the respawning function is within the PlayerAdded function.

Yes. This is the issue here.
You need to implement a CharacterAdded event.

1 Like

Thanks for confirming, I’ll go try that out and let you know if it works.

1 Like

Yep, this was it! Works like a charm now, just have to clean up my spaghetti coding. Thank you so much for the help!

1 Like