Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

So how do I make this script repeat after a Player has died?

game.Players.PlayerAdded:Connect(function(player)
	player.CharacterAppearanceLoaded:Wait()
	player.Character.Humanoid:RemoveAccessories()
end)

1 answer

You could attach a CharacterAdded event inside your PlayerAdded event to so that it fires every time a new character is created which happens every time a player dies,

game.Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(character)
		local humanoid = character:WaitForChild("Humanoid")
		humanoid:RemoveAccessories()
	end)
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.