01 | -- Hat |
02 |
03 | ---------------------------------------- |
04 |
05 |
06 | local NewHat = game.ReplicatedStorage.HeadBands.Headband |
07 |
08 | repeat wait() |
09 | NewHat.Parent = script.Parent |
10 | until NewHat.Parent = = script.Parent |
I've made this simple script, yet when I die the hat doesn't appear on the player?!? (In StarterCharacterScripts)
You have one hat in each players ReplicatedStorage, meaning that it disappears when you put it on the player. Use :Clone()
at the end of your NewHat
variable to make a clone of it, meaning that it does not get rid of the original.