RunService stops after dying

I have runservice running and once the player dies it just stops doing its thing.

RunService.RenderStepped:Connect(update)

the script is in the player (not player character) and I can’t find a solution to make it so the RunService keep working after dying. If anyone knows anything please let me know. Thank you.

1 Like

If your update function uses things like the characters humanoid root part, you will need to get the new one as it will still ise the old one which has been destroyed.

This is why including your code in the post is important.

1 Like

if getting the character outside the function should I always call to get the new one inside the update function?

1 Like

Yeah, or you can use an event like character added to update the one outside the function

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.