function UTIL.WaitForValidCharacter(h)local c=h.Character if not c or not c.Parent or not c:FindFirstChild("\072\117\109\097\110\111\105\100")or c.Humanoid.Health<=0 then h.CharacterAdded:Wait()wait()c=h.Character end return c end

function UTIL.WaitForValidCharacter(player)
	local character = player.Character
	if not character or not character.Parent or not character:FindFirstChild('Humanoid') or character.Humanoid.Health <= 0 then
		player.CharacterAdded:Wait()
		wait()
		character = player.Character
	end
	return character
end

