I want this to happen each time the player health is 0
local player = game.Players
local players = player.LocalPlayer
local char = player.Character
humanoid = char:FindFirstChild("Humanoid")
function loadcharacter(respawn)
if humanoid.Health > 1 then
player:GetPlayerFromCharacter(respawn):LoadCharacter()
end
end
Error: Character is not a valid member of Players Help?
