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

How to make a character respawn with hats?

Asked by 5 years ago

can someone help me figure out how to make a player respawn with hats? I got it to where it removes their hats and adds hats to them but idk how to make it so that if they die they spawn with them again

Code:

01local Players = game:GetService("Players")
02 
03local function playerAdded(player)
04    player.CharacterAppearanceLoaded:Connect(function(character)
05        local humanoid = character:WaitForChild("Humanoid")
06 
07 
08        humanoid:RemoveAccessories()
09 
10 
11end)
12end
13 
14 
15for _, player in pairs(Players:GetPlayers()) do
View all 31 lines...

Answer this question