Upon player leaving, Character is not destroyed via Destroy()

Now, Im not sure if this is a bug, and even if it is, i cant post in Bug Reports.

So i have a hitbox system using Spatial queries, so i have to detect if the tool/player using the hitbox is destroyed, If they are destroyed normally (Destroy()) then the hitbox disappears, All good, However, If they leave, The hitbox doesn’t go away, And the prints do not print.

I have tested on a different script (server script) and detected when a player joins, and their character spawns (This works, dont worry) And then set up a .Destroying connection, it didn’t work

What is going on? I thought this worked before, So now .Destroying doesn’t work if a character is removed due to their player leaving.

I know i can probably just do .CharacterRemoving, But still, I’d like to know if there’s a fix for this.

1 Like

You might want to look into PlayerCharacterDestroyBehavior

3 Likes

Oh, I was not aware of this property, nor the announcement for it.

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