I force players to wear certain accessories in my game using the humanoid:AddAccessory() function and it works fine except that when they die they lose the accessories. Would I have to just copy all their accessories when they die and put them back on when they respawn or is there a better way to do it?
✓ ANSWER ACCEPTED
How to make the player keep accessories given to them on when they die?
1 answer
✓ Accepted answer
Use the Humanoid.Died event and then reassign/add the accessories back to the player. You could use a bindable event so when the Humanoid dies it triggers the accessory-add process in another script.
This discussion is preserved as it was. New answers, comments, and votes are closed.
