Character/ Player loses everything after dying?

So currently I have a system which equips Weapons, right now. I am planning on adding armour and potions. So I have done the weapons and the only thing I need to fix is when a player dies everything in there backpack and character, so an equipped weapon gets, removed. I know I’ll need a character related event but not sure how it will work, and how to implement.

If you need me to show any code, please let me know. All I need is a guide of some sort to make sure when a player dies there items would get removed.

1 Like

You can use this event: Humanoid | Documentation - Roblox Creator Hub

I know about this event, but how would I get the equipped weapons, would I make a for loop, if so how. I tried this event with giving basically reloading there data, but this creates duplicates, and may cause loss of data. With a for loop, would I just have to loop through everything and save it?

Try looping through their backpack and saving all the object names into a table

What about the equipped items? Would I loop through the character?

yup exactly check if the item is a tool

Alright, but when I add armour, this process would change? So how would armour work?

You could make a folder inside the Character and name it “Armor”

This could work thanks, armor is just welded onto the player, so as longs as it’s in the player it should work, I think. I’ll try this out.

1 Like

Good luck !! (30 charssssssss)