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

Making Sure Player has hat?

Asked by 4 years ago
Edited 4 years ago

-- Hat ---------------------------------------- local NewHat = game.ReplicatedStorage.HeadBands.Headband repeat wait() NewHat.Parent = script.Parent 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)

1 answer

Log in to vote
0
Answered by
Joshument 110
4 years ago

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.

0
I've fixed it, I've edited the script and moved it into startergui, cloning the hat into the player's character LegoUnicornRoblox 37 — 4y
Ad

Answer this question