Here is the script (IN LOCALSCRIPT)
game:GetService('Players').PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(character)
character:WaitForChild("Humanoid").Died:connect(function()
if Player:FindFirstChild("BodyColors")then --Detect the body colors of the player that died
Player.BodyColors.HeadColor = "Mid gray"
Player.BodyColors.LeftArmColor = "Light stone gray"
Player.BodyColors.LeftLegColor = "Medium stone gray"
Player.BodyColors.RightArmColor = "Medium stone gray"
Player.BodyColors.RightLegColor = "Mid gray"
Player.BodyColors.TorsoColor = "Light stone grey"
end
end)
end)
end)
