How is my localscript deleting stuff on the server?

Client’s have full control over their characters, that’s why when an exploiter deletes their humanoid they die, you can review this thread for more information on player descendants and control over it:

Best way to stop a character (exploiters) from removing their descendants?