Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make the player keep accessories given to them on when they die?

Asked by
tjtorin 172
4 years ago

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?

1 answer

Log in to vote
1
Answered by
N43FGXL 169
4 years ago

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.

Ad

Answer this question